al_findnext(3alleg)

al_findnext3alleg

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

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From liballegro-doc 2:4.2.2-2.2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.