File: strnlen.3

package info (click to toggle)
manpages-es 1.28-13
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,884 kB
  • ctags: 6
  • sloc: makefile: 63; sh: 55
file content (34 lines) | stat: -rw-r--r-- 1,331 bytes parent folder | download | duplicates (2)
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 tamao fijo
.SH SINOPSIS
.nf
.B #include <string.h>
.sp
.BI "size_t strnlen (const char *" s ", size_t " maxlen );
.fi
.SH DESCRIPCIN
La funcin \fBstrnlen\fP devuelve el nmero de caracteres de la cadena
apunta por \fIs\fP, sin incluir el carcter terminador '\\0', hasta un
mximo de \fImaxlen\fP. Al hacer esto, \fBstrnlen\fP mira slo los primeros
\fImaxlen\fP caracteres en \fIs\fP, nunca ms all de \fIs+maxlen\fP.
.SH "VALOR DEVUELTO"
La funcin \fBstrnlen\fP devuelve \fIstrlen(s)\fP, si dicho valor es menor
que \fImaxlen\fP, o \fImaxlen\fP si no existe un carcter '\\0' entre los
primeros \fImaxlen\fP caracteres apuntados por \fIs\fP.
.SH "CONFORME A"
Esta funcin es una extensin de GNU.
.SH "VASE TAMBIN"
.BR strlen (3)