.\" Generated by the Allegro makedoc utility .TH ustrchr 3alleg4 "version 4.4.3" "Allegro" "Allegro manual" .SH NAME ustrchr \- Finds the first occurrence of a character in a string. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B char *ustrchr(const char *s, int c); .SH DESCRIPTION Finds the first occurrence of the character `c' in the string `s'. Example: .nf char *p = ustrchr("one,two,three,four", ','); .fi .SH "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. .SH SEE ALSO .BR uconvert (3alleg4), .BR ustrrchr (3alleg4), .BR ustrstr (3alleg4), .BR ustrpbrk (3alleg4), .BR ustrtok (3alleg4)