strchr.c

The libc implementation

Author

Martin ‘Solar’ Baute

License

Public Domain

Summary
strchr.cThe libc implementation
Functions
strchrFinds the first occurance of the character c in the null-terminated string s

Functions

strchr

char * strchr(const char *s,
int c)

Finds the first occurance of the character c in the null-terminated string s

Returns a pointer to the location in the string where c is found

Returns NULL if c could not be found

char * strchr(const char *s,
int c)
Finds the first occurance of the character c in the null-terminated string s