[PATCH]: (newlib) Allow wcschr(x, L'\0')

Bob Cassels bcassels@abinitio.com
Fri Mar 14 19:46:00 GMT 2003


This simple patch for newlib allows using wcschr to find pointers to null 
characters, rather than returning NULL.  I hope it's simple enough to not 
require paperwork.

2003-03-14  Bob Cassels  <bcassels@abinitio.com>

        * libc/string/wcschr.c: (wcschr): Look for character first, then 
for
        end of string, so you can do wcschr(x, '\0').


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: wcschr-patch.txt
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20030314/962ed666/attachment.txt>


More information about the Cygwin-patches mailing list