STRLEN(DOS) XENIX System V STRLEN(DOS)
Name
strlen - Returns the length of a string.
Syntax
#include <string.h>
int strlen (string);
char *string;
Description
The strlen function returns the length in bytes of string ,
not including the terminating null character ('\0').
Return Value
strlen returns the string length. There is no error return.
Example
#include <string.h>
char *string = "some space"; int result; . .
. /* Determine the length of a string. */
result = strlen (string); /* result = 10 */
Notes
This call must be compiled with the -dos flag.
Page 1 (printed 8/7/87)