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

NAME

6       ustrstr  - Finds the first occurrence of a string in another one. Alle‐
7       gro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       char *ustrstr(const char *s1, const char *s2);
14

DESCRIPTION

16       This function finds the first occurrence of string `s2' in string `s1'.
17       Example:
18
19          char *p = ustrstr("hello world", "world");
20

RETURN VALUE

22       Returns a pointer within `s1', or NULL if `s2' wasn't found.
23
24

SEE ALSO

26       uconvert(3), ustrchr(3), ustrrchr(3), ustrpbrk(3), ustrtok(3)
27
28
29
30Allegro                          version 4.4.3                      ustrstr(3)
Impressum