@node strlen, string @findex strlen @subheading Syntax @example #include size_t strlen(const char *string); @end example @subheading Description This function returns the number of characters in @var{string}. @subheading Return Value The length of the string. @subheading Portability @portability ansi, posix @subheading Example @example if (strlen(fname) > PATH_MAX) invalid_file(fname); @end example