diff options
author | eadler <eadler@FreeBSD.org> | 2013-06-15 20:29:07 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2013-06-15 20:29:07 +0000 |
commit | bf7c0f2705c32e44d3c3b62d60453a30dbbffe3f (patch) | |
tree | dca088b474d4fedf5e6d4ef16e823d7756d587bc /contrib/cvs/lib/strstr.c | |
parent | b95c459e182fd072e6dac884c7eed86a220534e7 (diff) | |
download | FreeBSD-src-bf7c0f2705c32e44d3c3b62d60453a30dbbffe3f.zip FreeBSD-src-bf7c0f2705c32e44d3c3b62d60453a30dbbffe3f.tar.gz |
Remove CVS from the base system.
Discussed with: many
Reviewed by: peter, zi
Approved by: core
Diffstat (limited to 'contrib/cvs/lib/strstr.c')
-rw-r--r-- | contrib/cvs/lib/strstr.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/contrib/cvs/lib/strstr.c b/contrib/cvs/lib/strstr.c deleted file mode 100644 index e43bca0..0000000 --- a/contrib/cvs/lib/strstr.c +++ /dev/null @@ -1,40 +0,0 @@ -/****************************************************************************** -* * -* s t r s t r * -* * -* Find the first occurrence of a string in another string. * -* * -* Format: * -* return = strstr(Source,What); * -* * -* Parameters: * -* * -* Returns: * -* * -* Scope: PUBLIC * -* * -******************************************************************************/ - -char *strstr(Source, What) -register const char *Source; -register const char *What; -{ -register char WhatChar; -register char SourceChar; -register long Length; - - - if ((WhatChar = *What++) != 0) { - Length = strlen(What); - do { - do { - if ((SourceChar = *Source++) == 0) { - return (0); - } - } while (SourceChar != WhatChar); - } while (strncmp(Source, What, Length) != 0); - Source--; - } - return ((char *)Source); - -}/*strstr*/ |