mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
Update.
* sysdeps/generic/strtok_r.c: Use rawmemchr instead of strchr. * sysdeps/generic/strtok.c: Likewise.
This commit is contained in:
parent
e0faeea74f
commit
9f509acb28
@ -1,5 +1,8 @@
|
||||
1999-05-03 Ulrich Drepper <drepper@cygnus.com>
|
||||
|
||||
* sysdeps/generic/strtok_r.c: Use rawmemchr instead of strchr.
|
||||
* sysdeps/generic/strtok.c: Likewise.
|
||||
|
||||
* string/tester.c: Add test of rawmemchr.
|
||||
|
||||
* sysdeps/i386/bits/select.h (__FD_ZERO): Remove memory output
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991, 1996, 1997 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991, 1996, 1997, 1999 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -52,7 +52,7 @@ strtok (s, delim)
|
||||
s = strpbrk (token, delim);
|
||||
if (s == NULL)
|
||||
/* This token finishes the string. */
|
||||
olds = strchr (token, '\0');
|
||||
olds = __rawmemchr (token, '\0');
|
||||
else
|
||||
{
|
||||
/* Terminate the token and make OLDS point past it. */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Reentrant string tokenizer. Generic version.
|
||||
Copyright (C) 1991, 1996, 1997, 1998 Free Software Foundation, Inc.
|
||||
Copyright (C) 1991, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -53,7 +53,7 @@ __strtok_r (s, delim, save_ptr)
|
||||
s = strpbrk (token, delim);
|
||||
if (s == NULL)
|
||||
/* This token finishes the string. */
|
||||
*save_ptr = strchr (token, '\0');
|
||||
*save_ptr = __rawmemchr (token, '\0');
|
||||
else
|
||||
{
|
||||
/* Terminate the token and make *SAVE_PTR point past it. */
|
||||
|
Loading…
Reference in New Issue
Block a user