From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/FUNCTIONS/strstr.html | 74 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 reference/C/FUNCTIONS/strstr.html (limited to 'reference/C/FUNCTIONS/strstr.html') diff --git a/reference/C/FUNCTIONS/strstr.html b/reference/C/FUNCTIONS/strstr.html new file mode 100644 index 0000000..4df5542 --- /dev/null +++ b/reference/C/FUNCTIONS/strstr.html @@ -0,0 +1,74 @@ +strstr function + + + + + + +
+
+

strstr function

+
+
+

+strstr will find a sub-string within a string. +See also strchr which will look for a character in a +string. + +

+Library:   string.h
+
+Prototype: char * strstr(const char *s1, const char *s2);
+
+Syntax:	   char string1[]="red dwarf";
+	   char string2[]="dwarf";
+	   void *pointer;
+           pointer = strstr(string1, string2);
+
+strstr returns a pointer to the beginning of the sub-string or NULL +if not found. +
+

Example:

+ + + +example program. + +
+

See Also:

+ + +strstr man page. +

+ + +strchr Find a character in a string. +

+ + +

+ +


+

+

+ + + + +
+ Top + + Master Index + + Keywords + + Functions +
+
+

+


+
Martin Leslie +

+ + -- cgit v1.2.3-54-g00ecf