4 ms·
It's a tiny function, written in ANSI C, so if you're really concerned about this, just include it with your program. It's an extension to the standard C librar
by tptacek 8y ago
It's a tiny function, written in ANSI C, so if you're really concerned about this, just include it with your program. It's an extension to the standard C library, not to C itself.
- beefhash 8y agoExcept then you have the issue about compilers complaining about double-declarations of the function, meaning you'll either have a lot of warning spam on every #include or now hard require some kind of header defines for HAVE_STRSEP. Once you go that way, there's no going back and it's only gonna become more and more.
- tptacek 8y agoPeople have been including strsep in packages since the 1990s (people used to include their own snprintfs, ffs). If you're really this freaked out about it, call your local copy "mystrsep" or something like that. You know what else isn't in POSIX? All the rest of your C code.