[PATCH] add memrchr(3)

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Wed May 9 14:24:00 GMT 2012


This patch adds memrchr(3), a GNU extension also found in the BSDs:

http://man7.org/linux/man-pages/man3/memrchr.3.html

This patch is based on strrchr's usage of strchr.

Patch and new file attached.


Yaakov
Cygwin/X

-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib-memrchr.patch
Type: text/x-patch
Size: 4718 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20120509/0b4f645d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memrchr.c
Type: text/x-csrc
Size: 1299 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20120509/0b4f645d/attachment-0001.bin>


More information about the Newlib mailing list