delorie.com/djgpp/doc/libc/libc_753.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <string.h> char *strchr(const char *s, int c); |
This function returns a pointer to the first occurrence of c in
s. Note that if c is NULL
, this will return a
pointer to the end of the string.
A pointer to the character, or NULL
if it wasn't found.
ANSI/ISO C | C89; C99 |
POSIX | 1003.2-1992; 1003.1-2001 |
char *slash = strchr(filename, '/'); |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |