ustrchr man page

ustrchr — Finds the first occurrence of a character in a string. Allegro game programming library.


#include <allegro.h>

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


Finds the first occurrence of the character `c' in the string `s'. Example:

char *p = ustrchr("one,two,three,four", ',');

Return Value

Returns a pointer to the first occurrence of `c' in `s', or NULL if no match was found. Note that if `c' is NULL, this will return a pointer to the end of the string.

See Also

uconvert(3), ustrrchr(3), ustrstr(3), ustrpbrk(3), ustrtok(3)

Referenced By

ustrpbrk(3), ustrrchr(3), ustrstr(3), ustrtok(3).

Explore man page connections for ustrchr(3).

Allegro version 4.4.2 Allegro manual