INDEX(3) Library Functions Manual INDEX(3)
NAME
index — character
string operations (LEGACY)
SYNOPSIS
char *index(const char *s, int c);
DESCRIPTION
The index () function shall be equivalent
to strchr(3).
RETURN VALUE
See strchr(3).
ERRORS
See strchr(3).
EXAMPLES
None.
APPLICATION USAGE
The strchr(3) function is preferred over this function.
For maximum portability, it is recommended to replace the function
call to index () as follows:
#define index(a,b) strchr((a),(b))
RATIONALE
None.
FUTURE DIRECTIONS
This function may be withdrawn in a future version.
SEE ALSO
strchr(3), the Base Definitions volume of IEEE Std 1003.1-2001 (“POSIX.1”), <strings.h>
CHANGE HISTORY
First released in Issue 4, Version 2.
Issue 5
Moved from X/OPEN UNIX extension to BASE.
Issue 6
This function is marked LEGACY.
End of informative text. footer end
December 6, 2001 posix.fail