Next Previous Contents

3.4 _DE_ISREG

Function

Determine if a directory entry specifies a regular file.

Header

dirent.h

Declaration

int _DE_ISREG(unsigned char type);

Description

The function is called with the type of a directory entry taken from a struct dirent and returns true if the entry designates a regular file.

Limits

  • The function is actually a macro.
  • A "regular file" means anything with data in it. This might still mean that special processing is needed, when accessing the file. Relative files of the CBM systems are classified as being "regular" files, for example.

Availability

cc65

See also

_DE_ISDIR, _DE_ISLBL, _DE_ISLNK

Example

None.


Next Previous Contents