[LLVMdev] C API: Why do some functions require a string length arg

Keith Sheppard keithshep at gmail.com
Wed Oct 31 18:29:05 PDT 2012


Hello,

Most of the functions in the C api that take a string arg don't require a
string length but some do (eg. the somewhat new MD functions). Is there a
reason that some functions ask for length? If possible, I'd prefer for the
API not to require length for reasons of simplicity and consistency and if
it turns out that there is consensus for this change I'm happy to prepare a
patch.

Best, Keith

-- 
keithsheppard.name
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121031/4cbc0896/attachment.html>


More information about the llvm-dev mailing list