.\" Generated by the Allegro makedoc utility .TH al_findnext 3alleg4 "version 4.4.3" "Allegro" "Allegro manual" .SH NAME al_findnext \- Finds the next file in a search started by al_findfirst(). Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B int al_findnext(struct al_ffblk *info); .SH DESCRIPTION This finds the next file in a search started by al_findfirst(). Example: .nf if (al_findfirst("*.pcx", &info, 0) != 0) return; do { /* Do something useful here with info.name. */ } while (al_findnext(&info) == 0); al_findclose(&info); .fi .SH "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. .SH SEE ALSO .BR al_findfirst (3alleg4), .BR al_findclose (3alleg4)