File: strnlen.3

package info (click to toggle)
manpages-es 1.55-9
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 7,468 kB
  • ctags: 6
  • sloc: sh: 1,629; makefile: 64
file content (34 lines) | stat: -rw-r--r-- 1,346 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
.\"
.\" 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 <piernas@ditec.um.es>
.\"
.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 <string.h>
.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)