.\" Copyright (c) Bruno Haible .\" .\" 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. .\" .\" References consulted: .\" GNU glibc-2 source code and manual .\" .\" Translated Sat Apr 22 2000 by Juan Piernas .\" .TH STRNLEN 3 "25 julio 1999" "GNU" "Manual del Programador de Linux" .SH NOMBRE strnlen \- determina la longitud de una cadena de tamaño fijo .SH SINOPSIS .nf .B #include .sp .BI "size_t strnlen (const char *" s ", size_t " maxlen ); .fi .SH DESCRIPCIÓN La función \fBstrnlen\fP devuelve el número de caracteres de la cadena apunta por \fIs\fP, sin incluir el carácter terminador '\\0', hasta un máximo de \fImaxlen\fP. Al hacer esto, \fBstrnlen\fP mira sólo los primeros \fImaxlen\fP caracteres en \fIs\fP, nunca más allá de \fIs+maxlen\fP. .SH "VALOR DEVUELTO" La función \fBstrnlen\fP devuelve \fIstrlen(s)\fP, si dicho valor es menor que \fImaxlen\fP, o \fImaxlen\fP si no existe un carácter '\\0' entre los primeros \fImaxlen\fP caracteres apuntados por \fIs\fP. .SH "CONFORME A" Esta función es una extensión de GNU. .SH "VÉASE TAMBIÉN" .BR strlen (3)