index

Search for a character in a string.

Format

#include  <strings.h>

char *index  (const char *s, int c);
Function Variants This function also has variants named _index32 and _index64 for use with 32-bit and 64-bit pointer sizes, respectively. See Section 1.8 for more information on using pointer-size-specific functions.

Arguments

s
The string to search.
c
The character to search for.

Description

The index function is identical to the strchr function, and is provided for compatibility with some UNIX implementations.


Previous Page | Next Page | Table of Contents | Index