strrchr.c

The libc implementation

Author

Martin ‘Solar’ Baute

License

Public Domain

Summary
strrchr.cThe libc implementation
Functions
strrchrFinds the last character in s that matches c

Functions

strrchr

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

Finds the last character in s that matches c

Returns a pointer to the last character in s1 that matches c

Returns NULL if c does not occur in s

char * strrchr(const char *s,
int c)
Finds the last character in s that matches c