MEMCHR(3) BSD Programmer's Manual MEMCHR(3) NNAAMMEE mmeemmcchhrr - locate byte in byte string SSYYNNOOPPSSIISS ##iinncclluuddee <<ssttrriinngg..hh>> _v_o_i_d _* mmeemmcchhrr(_c_o_n_s_t _v_o_i_d _*_b, _i_n_t _c, _s_i_z_e___t _l_e_n); DDEESSCCRRIIPPTTIIOONN The mmeemmcchhrr() function locates the first occurrence of _c (converted to an unsigned char) in string _b. RREETTUURRNN VVAALLUUEESS The mmeemmcchhrr() function returns a pointer to the byte located, or NULL if no such byte exists within _l_e_n bytes. SSEEEE AALLSSOO index(3), rindex(3), strchr(3), strcspn(3), strpbrk(3), strrchr(3), strsep(3), strspn(3), strstr(3), strtok(3) SSTTAANNDDAARRDDSS The mmeemmcchhrr() function conforms to ANSI C X3.159-1989 (``ANSI C ''). 4.4BSD June 4, 1993 1