Go to the first, previous, next, last section, table of contents.


strlen

Syntax

#include <string.h>

size_t strlen(const char *string);

Description

This function returns the number of characters in string.

Return Value

The length of the string.

Portability

ANSI, POSIX

Example

if (strlen(fname) > PATH_MAX)
  invalid_file(fname);


Go to the first, previous, next, last section, table of contents.