summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/lib/strstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cvs/lib/strstr.c')
-rw-r--r--contrib/cvs/lib/strstr.c40
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*/
OpenPOWER on IntegriCloud