glibc-2.0.100: bits/string2.h nits
Ulrich Drepper
drepper@cygnus.com
Thu Nov 12 10:32:00 GMT 1998
"pacman" <pacman-libc@cqc.com> writes:
> The problem is that there are some functions in C, including strpbrk and
> strchr, which cannot be implemented in a clean way because of the way they
> abuse pointers. They can't be improved because their interfaces are defined
> by the relevant standards in a fundamentally broken way.
Correct.
> Change (char *)s to (char *)(long)s
I've added something similar: (long) is not the right type (well, it
normally is but not from the concept). I've used (size_t) instead.
I _looked_ through the file and fixed two places. But I might have
missed something. Let me know.
Thanks,
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------
More information about the Libc-alpha
mailing list