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

strlen function

+
+
+

+strlen will give you the length of a string, NOT including the '\0' +terminator. It should not be confused with the +sizeof operator +which returns the size of a variable (that could hold a string).

+ +

+Library:   string.h
+
+Prototype: size_t strlen(const char *s);
+
+Syntax:	   size_t size;
+	   char string[20]="red dwarf";
+           size = strlen(string);
+
+ +
+

Examples

+ + Example program. +
+

See Also

+ + strlen man page. +

+ + +sizeof operator. +

+ + + lenstr - User written version of strlen. + + +

+ +


+

+

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

+


+
Martin Leslie +

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