1ustrchr(3)                      Allegro manual                      ustrchr(3)
2
3
4

NAME

6       ustrchr  - Finds the first occurrence of a character in a string. Alle‐
7       gro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       char *ustrchr(const char *s, int c);
14

DESCRIPTION

16       Finds the first occurrence of the character  `c'  in  the  string  `s'.
17       Example:
18
19          char *p = ustrchr("one,two,three,four", ',');
20

RETURN VALUE

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

SEE ALSO

28       uconvert(3), ustrrchr(3), ustrstr(3), ustrpbrk(3), ustrtok(3)
29
30
31
32Allegro                          version 4.2.2                      ustrchr(3)
Impressum