likle / cwalk

Path library for C/C++. Cross-Platform for Linux, FreeBSD, Windows and MacOS. Supports UNIX and Windows path styles on those platforms.
https://likle.github.io/cwalk/
MIT License
250 stars 39 forks source link

Possibility of sized variants of functions? #9

Open Qix- opened 4 years ago

Qix- commented 4 years ago

Hey there. Is there a possibility of function variants that take the input string's length as a parameter instead of relying on them being null-terminated?

I have an application that makes heavy use of path manipulation and all of the string sizes are known beforehand. Further, not all places where this will be needed will have null terminators, so I'd rather avoid a copy in such cases.

Just curious :)

likle commented 4 years ago

Hi @Qix- , I'm afraid it currently only supports null terminated strings. But that's a valid concern, I will think about this and get back to you next week!