.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Mon Apr 12 12:51:24 1993, David Metcalfe .\" 2006-05-19, Justin Pryzby .\" Document strchrnul(3). .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH strchr 3 "5 Febrero 2023" "Páginas de manual de Linux 6.03" .SH NOMBRE strchr, strrchr, strchrnul \- localizan un carácter en una cadena .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fBchar *strchr(const char *\fP\fIs\fP\fB, int \fP\fIc\fP\fB);\fP \fBchar *strrchr(const char *\fP\fIs\fP\fB, int \fP\fIc\fP\fB);\fP .PP \fB#define _GNU_SOURCE\fP /* Vea feature_test_macros(7) */ \fB#include \fP .PP \fBchar *strchrnul(const char *\fP\fIs\fP\fB, int \fP\fIc\fP\fB);\fP .fi .SH DESCRIPCIÓN La función \fBstrchr\fP() devuelve un puntero a la primera ocurrencia del carácter \fIc\fP en la cadena de caracteres \fIs\fP. .PP La función \fBstrrchr\fP() devuelve un puntero a la última ocurrencia del carácter \fIc\fP en la cadena \fIs\fP. .PP The \fBstrchrnul\fP() function is like \fBstrchr\fP() except that if \fIc\fP is not found in \fIs\fP, then it returns a pointer to the null byte at the end of \fIs\fP, rather than NULL. .PP Aquí "carácter" quiere decir "byte" \- estas funciones no funcionan con caracteres anchos o multi\-byte. .SH "VALOR DEVUELTO" The \fBstrchr\fP() and \fBstrrchr\fP() functions return a pointer to the matched character or NULL if the character is not found. The terminating null byte is considered part of the string, so that if \fIc\fP is specified as \[aq]\e0\[aq], these functions return a pointer to the terminator. .PP La función \fBstrchrnul\fP() devuelve un puntero al elemento de la cadena con el carácter coincidente, o NULL si \fIs\fP, es decir \fIs+strlen(s)\fP, si el carácter no se ha encontrado. .SH VERSIONES \fBstrchrnul\fP() se ha añadido en la versión 2.1.1 de glibc. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .ad l .nh .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ \fBstrchr\fP(), \fBstrrchr\fP(), \fBstrchrnul\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .hy .ad .sp 1 .SH ESTÁNDARES \fBstrchr\fP(), \fBstrrchr\fP(): POSIX.1\-2001, POSIX.1\-2008, C99, SVr4, 4.3BSD. .PP \fBstrchrnul\fP() es una extensión GNU. .SH "VÉASE TAMBIÉN" \fBmemchr\fP(3), \fBstring\fP(3), \fBstrlen\fP(3), \fBstrpbrk\fP(3), \fBstrsep\fP(3), \fBstrspn\fP(3), \fBstrstr\fP(3), \fBstrtok\fP(3), \fBwcschr\fP(3), \fBwcsrchr\fP(3) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García y Marcos Fouces . .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 .