2 ms·
I love screwing around with NULL terminated strings, but doing it correctly is a lot harder. NULL and the delimiter might not be the same length if the string i
by swiley 7y ago
I love screwing around with NULL terminated strings, but doing it correctly is a lot harder. NULL and the delimiter might not be the same length if the string is UTF-8 encoded for example.
IMO: if it’s not a hobby project just use a library for slicing and manipulating strings. Really you should think twice before doing it at all.