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/strchr.html | 80 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 reference/C/FUNCTIONS/strchr.html (limited to 'reference/C/FUNCTIONS/strchr.html') diff --git a/reference/C/FUNCTIONS/strchr.html b/reference/C/FUNCTIONS/strchr.html new file mode 100644 index 0000000..0d1b39b --- /dev/null +++ b/reference/C/FUNCTIONS/strchr.html @@ -0,0 +1,80 @@ +strchr strrchr functions + + + + + + +
+

strchr strrchr functions

+

+


+ + +The functions will return a pointer to the character or +NULL if +the character is not found. + +
+
+Library:   string.h
+
+Prototype: char * strchr(const char *string, int character);
+
+Syntax:	   int character='w';
+	   char *string="red dwarf";
+           if(strchr(string, character)) puts("Character found");
+
+ +
+

See Also:

+ + +strstr which looks for a sub-string in a string. +

+ + +strpbrk +

+ + +index and rindex do the same as strchr +and strrchr but are non standard. + + +


+ + Example program (from Dave Doolin).

+ + + +

+ +


+

+

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

+


+
Martin Leslie +

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