DOKK / manpages / debian 10 / allegro4-doc / ustrstr.3alleg4.en
ustrstr(3alleg4) Allegro manual ustrstr(3alleg4)

ustrstr - Finds the first occurrence of a string in another one. Allegro game programming library.

#include <allegro.h>

char *ustrstr(const char *s1, const char *s2);

This function finds the first occurrence of string `s2' in string `s1'. Example:


char *p = ustrstr("hello world", "world");

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

uconvert(3alleg4), ustrchr(3alleg4), ustrrchr(3alleg4), ustrpbrk(3alleg4), ustrtok(3alleg4)

version 4.4.2 Allegro