STRCHR(3) BSD Programmer's Manual STRCHR(3) NNAAMMEE ssttrrcchhrr - locate character in string SSYYNNOOPPSSIISS ##iinncclluuddee <<ssttrriinngg..hh>> _c_h_a_r _* ssttrrcchhrr(_c_o_n_s_t _c_h_a_r _*_s, _i_n_t _c); DDEESSCCRRIIPPTTIIOONN The ssttrrcchhrr() function locates the first occurence of _c in the string pointed to by _s. The terminating NULL character is considered part of the string. If _c is `\0', ssttrrcchhrr() locates the terminating `\0'. RREETTUURRNN VVAALLUUEESS The function ssttrrcchhrr() returns a pointer to the located character, or NULL if the character does not appear in the string. SSEEEE AALLSSOO index(3), memchr(3), rindex(3), strcspn(3), strpbrk(3), strrchr(3), strsep(3), strspn(3), strstr(3), strtok(3) SSTTAANNDDAARRDDSS The ssttrrcchhrr() function conforms to ANSI C X3.159-1989 (``ANSI C ''). 4.4BSD June 4, 1993 1