
INDEX(3)                   UNIX Programmer's Manual                   INDEX(3)

NNAAMMEE
     iinnddeexx - locate character in string

SSYYNNOOPPSSIISS
     ##iinncclluuddee <<ssttrriinngg..hh>>

     _c_h_a_r _*
     iinnddeexx(_c_o_n_s_t _c_h_a_r _*_s, _i_n_t _c)

DDEESSCCRRIIPPTTIIOONN
     The iinnddeexx() function locates the first character matching _c (converted to
     a _c_h_a_r) in the null-terminated string _s.

RREETTUURRNN VVAALLUUEESS
     The character _c is returned if it is found; otherwise NULL is returned.
     If _c is '\0', iinnddeexx() locates the terminating '\0'.

SSEEEE AALLSSOO
     memchr(3),  rindex(3),  strchr(3),  strcspn(3),  strpbrk(3),  strrchr(3),
      strsep(3),  strspn(3),  strstr(3),  strtok(3)

HHIISSTTOORRYY
     A iinnddeexx() function appeared in Version 6 AT&T UNIX.

BSD Experimental                April 19, 1991                               1






































