Linux
Aliases: strchrnul(3), strchrnul(3), strchrnul(3), strchrnul(3), strchrnul(3), strchrnul(3), strchrnul(3), strchrnul(3), strchrnul(3), strchrnul(3), strrchr(3), strrchr(3), strrchr(3), strrchr(3), strrchr(3), strrchr(3), strrchr(3), strrchr(3), strrchr(3), strrchr(3), strrchr(3), strrchr(3)
manpages-es
Spanish man pages
man-pages-es
Spanish man pages from the Linux Documentation Project
manpages-dev
Manual pages about using GNU/Linux for development
man-pages
Linux kernel and C library user-space interface documentation
NOMBRE
strchr, strrchr - localizan un carácter en una cadena de ellos
SINOPSIS
#include <string.h>
char *strchr(const char *s, int c);
char *strrchr(const char *s, int c);
DESCRIPCIÓN
La función strchr() devuelve un puntero a la primera ocurrencia del carácter c en la cadena de caracteres s.
La función strrchr() devuelve un puntero a la última ocurrencia del carácter c en la cadena s.
Aquí "carácter" quiere decir "byte" - estas funciones no funcionan con carácteres anchos o multi-byte.
VALOR DEVUELTO
Las funciones strchr() y strrchr() devuelven un puntero al elemento de la cadena con el carácter coincidente, o NULL si el carácter no se ha encontrado.
CONFORME A
SVID 3, POSIX, BSD 4.3, ISO 9899