Name

ap_ind — find the first index of a character in a string

Synopsis

int ap_ind(const char *s, char c)

Returns the offset of the first occurrence of c in s, or -1 if c is not in s.