Everything

strrchr


Character string search (end position)

[Classification]

Standard library

[Syntax]

#include <string.h>

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

[Return value]

Returns a pointer indicating c that has been found. If c does not appear in this character string, the null pointer is returned.

[Description]

This function obtains the position at which c converted into char type appears last in the character string indicated by s. The null character (\0) indicating termination is regarded as part of this character string.