OLD | NEW |
1 /* Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2004, 2006, 2008-2011 | 1 /* Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2004, 2006, 2008-2012 |
2 Free Software Foundation, Inc. | 2 Free Software Foundation, Inc. |
3 | 3 |
4 Based on strlen implementation by Torbjorn Granlund (tege@sics.se), | 4 Based on strlen implementation by Torbjorn Granlund (tege@sics.se), |
5 with help from Dan Sahlin (dan@sics.se) and | 5 with help from Dan Sahlin (dan@sics.se) and |
6 commentary by Jim Blandy (jimb@ai.mit.edu); | 6 commentary by Jim Blandy (jimb@ai.mit.edu); |
7 adaptation to memchr suggested by Dick Karpinski (dick@cca.ucsf.edu), | 7 adaptation to memchr suggested by Dick Karpinski (dick@cca.ucsf.edu), |
8 and implemented by Roland McGrath (roland@ai.mit.edu). | 8 and implemented by Roland McGrath (roland@ai.mit.edu). |
9 | 9 |
10 NOTE: The canonical source of this file is maintained with the GNU C Library. | 10 NOTE: The canonical source of this file is maintained with the GNU C Library. |
11 Bugs can be reported to bug-glibc@prep.ai.mit.edu. | 11 Bugs can be reported to bug-glibc@prep.ai.mit.edu. |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 { | 163 { |
164 if (*char_ptr == c) | 164 if (*char_ptr == c) |
165 return (void *) char_ptr; | 165 return (void *) char_ptr; |
166 } | 166 } |
167 | 167 |
168 return NULL; | 168 return NULL; |
169 } | 169 } |
170 #ifdef weak_alias | 170 #ifdef weak_alias |
171 weak_alias (__memchr, BP_SYM (memchr)) | 171 weak_alias (__memchr, BP_SYM (memchr)) |
172 #endif | 172 #endif |
OLD | NEW |