*/
#ifndef lint
-static char sccsid[] = "@(#)str.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)str.c 5.4 (Berkeley) %G%";
#endif /* not lint */
/*-
* the two strings, all this under the control
* of the STR_ flags given as the third arg.
*
- * Str_New Duplicate a string and return the copy.
- *
- * Str_FindSubstring Find a substring within a string (from
- * original Sprite libc).
+ * Str_FindSubstring Find a substring within a string
*
* Str_Match Pattern match two strings.
*/
}
return (result);
}
-\f
-/*-
- *-----------------------------------------------------------------------
- * Str_New --
- * Create a new unique copy of the given string
- *
- * Results:
- * A pointer to the new copy of it
- *
- * Side Effects:
- * None
- *-----------------------------------------------------------------------
- */
-char *
-Str_New (str)
- char *str; /* string to duplicate */
-{
- register char *cp; /* new space */
- cp = malloc (strlen (str) + 1);
- (void) strcpy (cp, str);
- return (cp);
-}
-\f
static char
DoBackslash (c)
char c;
default: return (c);
}
}
-\f
+
/*-
*-----------------------------------------------------------------------
* Str_BreakString --
return av;
}
-\f
+
/*-
*-----------------------------------------------------------------------
* Str_FreeVec --
}
free (vecPtr);
}
-#ifndef Sprite
-\f
+
/*
*----------------------------------------------------------------------
* Str_FindSubstring --
return (char *) NULL;
}
-#endif /* !Sprite */
-\f
/*
*----------------------------------------------------------------------
*