logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

pack_feof - Returns nonzero as soon as you reach the end of the file. Allegro game programming library.

Description

       Finds out if you have reached the end of the file. It does not wait for you to attempt to read beyond the
       end of the file, contrary to the ISO C feof() function. The only way to know whether you have read beyond
       the  end  of  the  file  is  to  check  the  return  value  of the read operation you use (and be wary of
       pack_*getl() as EOF is also a valid return value with these functions).

Name

       pack_feof - Returns nonzero as soon as you reach the end of the file. Allegro game programming library.

Return Value

       Returns non-zero if you are at the end of the file, zero otherwise.

See Also

pack_fopen(3alleg4), pack_fopen_chunk(3alleg4), pack_ferror(3alleg4)

Allegro                                           version 4.4.3                               pack_feof(3alleg4)

Synopsis

#include<allegro.h>intpack_feof(PACKFILE*f);

See Also