Scroll to navigation

WCSNLEN(3) Manual del Programador de Linux WCSNLEN(3)

NOMBRE

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

SINOPSIS

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

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

wcsnlen():

_POSIX_C_SOURCE >= 200809L
_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.

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 in glibc since version 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

CONFORME A

POSIX.1-2008.

VÉASE TAMBIÉN

strnlen(3), wcslen(3)

COLOFÓN

Esta página es parte de la versión 5.10 del proyecto Linux man-pages. Puede encontrar una descripción del proyecto, información sobre cómo informar errores y la última versión de esta página en https://www.kernel.org/doc/man-pages/.

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>..

6 Marzo 2019 GNU