2000-05-06 Mumit Khan <khan@xraylith.wisc.edu>
* include/wchar.h (wcscmp, wcslen): Fix prototypes. * syscalls.cc (wcslen, wcscmp): Adjust.
This commit is contained in:
parent
2a1064aad6
commit
60c83af2ad
|
@ -1,3 +1,8 @@
|
||||||
|
2000-05-06 Mumit Khan <khan@xraylith.wisc.edu>
|
||||||
|
|
||||||
|
* include/wchar.h (wcscmp, wcslen): Fix prototypes.
|
||||||
|
* syscalls.cc (wcslen, wcscmp): Adjust.
|
||||||
|
|
||||||
Fri May 5 23:32:07 2000 Christopher Faylor <cgf@cygnus.com>
|
Fri May 5 23:32:07 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* errno.cc (errmap): Correct DIRECTORY mapping to ENOTDIR.
|
* errno.cc (errmap): Correct DIRECTORY mapping to ENOTDIR.
|
||||||
|
|
|
@ -19,8 +19,8 @@ details. */
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
int wcscmp (wchar_t *__s1, wchar_t *__s2);
|
int wcscmp (const wchar_t *__s1, const wchar_t *__s2);
|
||||||
int wcslen (wchar_t *__s1);
|
size_t wcslen (const wchar_t *__s1);
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
|
|
@ -1836,7 +1836,7 @@ putw (int w, FILE *fp)
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
int
|
int
|
||||||
wcscmp (wchar_t *s1, wchar_t *s2)
|
wcscmp (const wchar_t *s1, const wchar_t *s2)
|
||||||
{
|
{
|
||||||
while (*s1 && *s1 == *s2)
|
while (*s1 && *s1 == *s2)
|
||||||
{
|
{
|
||||||
|
@ -1848,8 +1848,8 @@ wcscmp (wchar_t *s1, wchar_t *s2)
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
int
|
size_t
|
||||||
wcslen (wchar_t *s1)
|
wcslen (const wchar_t *s1)
|
||||||
{
|
{
|
||||||
int l = 0;
|
int l = 0;
|
||||||
while (s1[l])
|
while (s1[l])
|
||||||
|
|
Loading…
Reference in New Issue