al_findnext(3alleg4)

al_findnext3alleg4

Finds the next file in a search started by al_findfirst(). allegro game programming library.

Usage

#include <allegro.h>

int al_findnext(struct al_ffblk *info);

Overview

This finds the next file in a search started by al_findfirst(). Example:

   if (al_findfirst("*.pcx", &info, 0) != 0)
      return;
   do {
      /* Do something useful here with info.name. */
   } while (al_findnext(&info) == 0);
   al_findclose(&info);

Return value

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

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

From allegro4-doc 2:4.4.3.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.