Re: String functions with end pointers?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul Eggert <eggert@xxxxxxxxxxx> writes:

>>   pe> char *memechr(const char *str, const char *endp, char c);

Come to think of it, this kind of signature isn't right for the mem*
family, and I suppose it should be something like this instead:

void *memechr(const void *mem, const void *endp, unsigned char c);

This is because the mem* functions use void * as part of the API (so
that you can pass anything to them), but internally they operate on
arrays as if they were arrays of unsigned char.


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux