strlen() — Determine String Length

Format

#include <string.h>

size_t strlen(const char *string);

General Description

The strlen() built-in function determines the length of string pointed to by string, excluding the terminating NULL character.

Returned Value

The strlen() function returns the length of string.

Related Information