diff options
Diffstat (limited to 'contrib/binutils/libiberty/strchr.c')
| -rw-r--r-- | contrib/binutils/libiberty/strchr.c | 30 | 
1 files changed, 0 insertions, 30 deletions
diff --git a/contrib/binutils/libiberty/strchr.c b/contrib/binutils/libiberty/strchr.c deleted file mode 100644 index 1f71c5143d08..000000000000 --- a/contrib/binutils/libiberty/strchr.c +++ /dev/null @@ -1,30 +0,0 @@ -/* Portable version of strchr() -   This function is in the public domain.  */ - -/* - -@deftypefn Supplemental char* strchr (const char *@var{s}, int @var{c}) - -Returns a pointer to the first occurrence of the character @var{c} in -the string @var{s}, or @code{NULL} if not found.  If @var{c} is itself the -null character, the results are undefined. - -@end deftypefn - -*/ - -#include <ansidecl.h> - -char * -strchr (s, c) -  register const char *s; -  int c; -{ -  do { -    if (*s == c) -      { -	return (char*)s; -      } -  } while (*s++); -  return (0); -}  | 
