mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
Update.
1999-06-30 Ulrich Drepper <drepper@cygnus.com> * wcsmbs/wcsrchr.c: Fix handling of L'\0' parameter. * wcsmbs/wcschr.c: Likewise.
This commit is contained in:
parent
b3fc5f84d1
commit
1cda411d51
@ -1,3 +1,8 @@
|
|||||||
|
1999-06-30 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* wcsmbs/wcsrchr.c: Fix handling of L'\0' parameter.
|
||||||
|
* wcsmbs/wcschr.c: Likewise.
|
||||||
|
|
||||||
1999-06-28 Ulrich Drepper <drepper@cygnus.com>
|
1999-06-28 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* sysdeps/libm-ieee754/e_gamma_r.c: Initialize *signgamp for NaN
|
* sysdeps/libm-ieee754/e_gamma_r.c: Initialize *signgamp for NaN
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1995, 1996 Free Software Foundation, Inc.
|
/* Copyright (C) 1995, 1996, 1999 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -25,11 +25,10 @@ wcschr (wcs, wc)
|
|||||||
register const wchar_t *wcs;
|
register const wchar_t *wcs;
|
||||||
register const wchar_t wc;
|
register const wchar_t wc;
|
||||||
{
|
{
|
||||||
while (*wcs != L'\0')
|
do
|
||||||
if (*wcs == wc)
|
if (*wcs == wc)
|
||||||
return (wchar_t *) wcs;
|
return (wchar_t *) wcs;
|
||||||
else
|
while (*wcs++ != L'\0')
|
||||||
++wcs;
|
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1995, 1996 Free Software Foundation, Inc.
|
/* Copyright (C) 1995, 1996, 1999 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper, <drepper@gnu.ai.mit.edu>
|
Contributed by Ulrich Drepper, <drepper@gnu.ai.mit.edu>
|
||||||
|
|
||||||
@ -28,12 +28,10 @@ wcsrchr (wcs, wc)
|
|||||||
{
|
{
|
||||||
const wchar_t *retval = NULL;
|
const wchar_t *retval = NULL;
|
||||||
|
|
||||||
while (*wcs != L'\0')
|
do
|
||||||
{
|
if (*wcs == wc)
|
||||||
if (*wcs == wc)
|
retval = wcs;
|
||||||
retval = wcs;
|
while (*wcs++ != L'\0')
|
||||||
++wcs;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (wchar_t *) retval;
|
return (wchar_t *) retval;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user