diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2000-04-18 02:42:13 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2000-04-18 02:42:13 +0000 |
commit | 250e7c04cd108375c2bc4e6657a3d660ecc4f10c (patch) | |
tree | ffc0692c3d95a48643d48abc64d13f425186d5c0 /contrib/binutils/libiberty/strchr.c | |
parent | bf5476a7568284207ef150fa66e60173e5fd7c2b (diff) |
Notes
Diffstat (limited to 'contrib/binutils/libiberty/strchr.c')
-rw-r--r-- | contrib/binutils/libiberty/strchr.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/contrib/binutils/libiberty/strchr.c b/contrib/binutils/libiberty/strchr.c deleted file mode 100644 index 22976ce248af..000000000000 --- a/contrib/binutils/libiberty/strchr.c +++ /dev/null @@ -1,34 +0,0 @@ -/* Portable version of strchr() - This function is in the public domain. */ - -/* -NAME - strchr -- return pointer to first occurance of a character - -SYNOPSIS - char *strchr (const char *s, int c) - -DESCRIPTION - Returns a pointer to the first occurance of character C in - string S, or a NULL pointer if no occurance is found. - -BUGS - Behavior when character is the null character is implementation - dependent. -*/ - -#include <ansidecl.h> - -char * -strchr (s, c) - register CONST char *s; - int c; -{ - do { - if (*s == c) - { - return (char*)s; - } - } while (*s++); - return (0); -} |