Scroll to navigation

wcsnlen(3) Library Functions Manual wcsnlen(3)

NOMBRE

wcsnlen - determina la longitud de una cadena de caracteres anchos de tamaño fijo

BIBLIOTECA

Biblioteca Estándar C (libc, -lc)

SINOPSIS

#include <wchar.h>
size_t wcsnlen(const wchar_t s[.maxlen], size_t maxlen);

Requisitos de Macros de Prueba de Características para glibc (véase feature_test_macros(7)):

wcsnlen():


Desde glibc 2.10:
_POSIX_C_SOURCE >= 200809L
Antes de glibc 2.10:
_GNU_SOURCE

DESCRIPCIÓN

The wcsnlen() function is the wide-character equivalent of the strnlen(3) function. It returns the number of wide-characters in the string pointed to by s, not including the terminating null wide character (L'\0'), but at most maxlen wide characters (note: this parameter is not a byte count). In doing this, wcsnlen() looks at only the first maxlen wide characters at s and never beyond s[maxlen-1].

VALOR DEVUELTO

The wcsnlen() function returns wcslen(s), if that is less than maxlen, or maxlen if there is no null wide character among the first maxlen wide characters pointed to by s.

VERSIONES

The wcsnlen() function is provided since glibc 2.1.

ATRIBUTOS

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

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

ESTÁNDARES

POSIX.1-2008.

VÉASE TAMBIÉN

strnlen(3), wcslen(3)

TRADUCCIÓN

La traducción al español de esta página del manual fue creada por Pedro Pablo Fábrega <pfabrega@arrakis.es> y Juan Piernas <piernas@ditec.um.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.

5 Febrero 2023 Páginas de manual de Linux 6.03