A
Andrey Vul
Is use of strchr(const char *s, '\0') undefined as as a short form of
(s + strlen(s)) ?
The problem is that memchr requires strlen, so strchr is the only way
to do uncounted char find. Is there a way to use it so that it returns
the address of the '\0' in s?
(s + strlen(s)) ?
The problem is that memchr requires strlen, so strchr is the only way
to do uncounted char find. Is there a way to use it so that it returns
the address of the '\0' in s?