.\" 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 .\" .TH STRNLEN 3 "25 de Julho de 1999" "GNU" "Manual do Programador Linux" .SH NOME strnlen \- determina o tamanho de uma cadeia de caracteres de tamanho fixo .SH SINOPSE .nf .B #include .sp .BI "size_t strnlen (const char *" s ", size_t " maxlen ); .fi .SH DESCRIÇÃO A função \fBstrnlen\fP devolve o numero de caracteres na cadeia de caracteres apontado pelo \fIs\fP, sem incluir o caractere de terminação '\\0', mas no máximo \fImaxlen\fP. Em fazendo isto, \fBstrnlen\fP somente vê o primeiro caractere \fImaxlen\fP em \fIs\fP e nunca além \fIs+maxlen\fP. .SH "VALORES DE RETORNO" A função \fBstrnlen\fP devolve \fIstrlen(s)\fP, se aquele é menor que \fImaxlen\fP, ou \fImaxlen\fP se não havia o caractere '\\0' entre o primeiro caractere \fImaxlen\fP apontado por \fIs\fP. .SH "DE ACORDO COM" Esta função é um extensão GNU. .SH "VEJA TAMBÉM" .BR strlen (3)