.\" -*- coding: UTF-8 -*- .\" Copyright (c) Bruno Haible .\" .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA) .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" %%%LICENSE_END .\" .\" References consulted: .\" GNU glibc-2 source code and manual .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH STRNLEN 3 "21 Diciembre 2020" GNU "Manual del Programador de Linux" .SH NOMBRE strnlen \- determina la longitud de una cadena de tamaño fijo .SH SINOPSIS .nf \fB#include \fP .PP \fBsize_t strnlen(const char *\fP\fIs\fP\fB, size_t \fP\fImaxlen\fP\fB);\fP .fi .PP .RS -4 Requisitos de Macros de Prueba de Características para glibc (véase \fBfeature_test_macros\fP(7)): .RE .PP \fBstrnlen\fP(): .PD 0 .ad l .RS 4 .TP 4 Desde glibc 2.10: _POSIX_C_SOURCE\ >=\ 200809L .TP Antes de glibc 2.10: _GNU_SOURCE .RE .ad .PD .SH DESCRIPCIÓN The \fBstrnlen\fP() function returns the number of bytes in the string pointed to by \fIs\fP, excluding the terminating null byte (\(aq\e0\(aq), but at most \fImaxlen\fP. In doing this, \fBstrnlen\fP() looks only at the first \fImaxlen\fP characters in the string pointed to by \fIs\fP and never beyond \fIs[maxlen\-1]\fP. .SH "VALOR DEVUELTO" The \fBstrnlen\fP() function returns \fIstrlen(s)\fP, if that is less than \fImaxlen\fP, or \fImaxlen\fP if there is no null terminating (\(aq\e0\(aq) among the first \fImaxlen\fP characters pointed to by \fIs\fP. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lb lb lb l l l. Interfaz Atributo Valor T{ \fBstrnlen\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .SH "CONFORME A" POSIX.1\-2008. .SH "VÉASE TAMBIÉN" \fBstrlen\fP(3) .SH COLOFÓN Esta página es parte de la versión 5.10 del proyecto Linux \fIman\-pages\fP. 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/. .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Juan Piernas . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .