/[gnats]/gnats/libiberty/memchr.c
ViewVC logotype

Diff of /gnats/libiberty/memchr.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by jsm, Tue Oct 26 07:10:16 1999 UTC revision 1.3 by pdm, Mon Dec 10 23:03:26 2001 UTC
# Line 50  memchr (src_void, c, length) Line 50  memchr (src_void, c, length)
50  {  {
51    const unsigned char *src = (const unsigned char *)src_void;    const unsigned char *src = (const unsigned char *)src_void;
52        
53    while (--length >= 0)    while (length-- > 0)
54    {    {
55      if (*src == c)      if (*src == c)
56       return (PTR)src;       return (PTR)src;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26