strlen(3) Library Functions Manual strlen(3)

strlen - calcula la longitud de una cadena de caracteres

Biblioteca Estándar C (libc, -lc)

#include <string.h>
size_t strlen(const char *s);

The strlen() function calculates the length of the string pointed to by s, excluding the terminating null byte ('\0').

The strlen() function returns the number of bytes in the string pointed to by s.

Para obtener una explicación de los términos usados en esta sección, véase attributes(7).

Interfaz Atributo Valor
strlen() Seguridad del hilo Multi-hilo seguro

C11, POSIX.1-2008.

POSIX.1-2001, C89, SVr4, 4.3BSD.

In cases where the input buffer may not contain a terminating null byte, strnlen(3) should be used instead.

string(3), strnlen(3), wcslen(3), wcsnlen(3)

La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García <gerardo.aburruzaga@uca.es>

Esta traducción es documentación libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD.

Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a debian-l10n-spanish@lists.debian.org.

31 Octubre 2023 Páginas de manual de Linux 6.06