GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


Manpage of INDEX

INDEX

Index
 

NAME

index, rindex - locate character in string  

SYNOPSIS

#include <strings.h>

char *index(const char *s, int c);

char *rindex(const char *s, int c);
 

DESCRIPTION

The fBindex()fP function returns a pointer to the first occurrence of the character fIcfP in the string fIsfP.

The fBrindex()fP function returns a pointer to the last occurrence of the character fIcfP in the string fIsfP.

The terminating NULL character is considered to be a part of the strings.  

RETURN VALUE

The fBindex()fP and fBrindex()fP functions return a pointer to the matched character or NULL if the character is not found.  

CONFORMING TO

BSD 4.3  

SEE ALSO

memchr(3), strchr(3), strpbrk(3), strrchr(3), strsep(3), strspn(3), strstr(3), strtok(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
CONFORMING TO
SEE ALSO