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:
parent
c745f853be
commit
6b3bb52b84
|
@ -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>
|
2003-03-10 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
|
* libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
|
||||||
|
|
|
@ -69,14 +69,13 @@ _DEFUN (wcschr, (s, c),
|
||||||
_CONST wchar_t *p;
|
_CONST wchar_t *p;
|
||||||
|
|
||||||
p = s;
|
p = s;
|
||||||
while (*p)
|
do
|
||||||
{
|
{
|
||||||
if (*p == c)
|
if (*p == c)
|
||||||
{
|
{
|
||||||
/* LINTED interface specification */
|
/* LINTED interface specification */
|
||||||
return (wchar_t *) p;
|
return (wchar_t *) p;
|
||||||
}
|
}
|
||||||
p++;
|
} while (*p++);
|
||||||
}
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue