[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
STRLEN
. Summary
strlen(str <s>);
. Description
The strlen function returns the number of characters in the string
<s>. Since strings are terminated with a 0 (NULL) character, this
function really counts the number of characters before a 0 is en-
countered.
. Return Value
An integer value representing the length of a string.
. Example
str teststr[] = "This is a test string";
printsc("The length of 'teststr' is ");
printn(strlen(teststr));
See Also:
strmaxlen
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson