Why __memrchr vs. memrchr ?

Dmitry V. Levin ldv@altlinux.org
Mon Feb 2 22:17:00 GMT 2004


Hi,

On Tue, Feb 03, 2004 at 02:37:21AM +0500, Denis Zaitsev wrote:
> Why such a scheme is used in GLIBC:
> 
> declare + define __memrchr, and than
> 
> # ifdef __USE_GNU
> #  define memrchr(s, c, n) __memrchr ((s), (c), (n))
> # endif
> 
> ?  memrchr is not the GNU extension, is it?

According to memchr(3),
"The memrchr() function is a GNU extension, available since glibc 2.1.91".


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20040202/38a5469a/attachment.sig>


More information about the Libc-alpha mailing list