strrchr


Character search from end position of character string

[Classification]

Standard library

[Syntax]

#include <string.h>

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

char __far * __far _COM_strrchr_f(const char __far *s, int c);

[Return value]

Returns a pointer indicating character 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 appears last in the character string indicated by s. The null character (\0) indicating termination is regarded as part of this character string.