2003-03-17 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').
This commit is contained in:
Jeff Johnston 2003-03-17 17:12:32 +00:00
parent c745f853be
commit 6b3bb52b84
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-03-17 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').
2003-03-10 Corinna Vinschen <corinna@vinschen.de>
* libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello

View File

@ -69,14 +69,13 @@ _DEFUN (wcschr, (s, c),
_CONST wchar_t *p;
p = s;
while (*p)
do
{
if (*p == c)
{
/* LINTED interface specification */
return (wchar_t *) p;
}
p++;
}
} while (*p++);
return NULL;
}