Compute the length of a character array.
Compatibility:This function is compatible with the following targets:
|
|
#include <string.h>
size_t strlen(const char *s);Parameters:
Parameters for this facility are:
#include <string.h>
#include <stdio.h>
int main(void)
{
static char s[] = "antidisestablishmentarianism";
printf("The length of %s is %ld.\n", s, strlen(s));
return 0;
}
Output:
The length of antidisestablishmentarianism is 28.
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 16, 2000