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

NAME

6       al_findnext  -  Finds  the  next  file  in a search started by al_find‐
7       first(). Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int al_findnext(struct al_ffblk *info);
14

DESCRIPTION

16       This finds the next file in a search started by  al_findfirst().  Exam‐
17       ple:
18
19          if (al_findfirst("*.pcx", &info, 0) != 0)
20             return;
21
22          do {
23             /* Do something useful here with info.name. */
24          } while (al_findnext(&info) == 0);
25
26          al_findclose(&info);
27

RETURN VALUE

29       Returns  zero  if  a match is found, non-zero if none is found or if an
30       error occurred and, in the latter case, sets errno accordingly.
31
32

SEE ALSO

34       al_findfirst(3), al_findclose(3)
35
36
37
38Allegro                          version 4.4.3                  al_findnext(3)
Impressum