home *** CD-ROM | disk | FTP | other *** search
- main() /* strlen.c -- illustrates strlen(), string length function */
-
- {
-
- int length;
- char *string;
-
- string = "12345678984823467823847628";
- length = strlen(string);
-
- printf("There are %d digits in my number -- count 'em!\n", length);
- }