C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_dos_getfileattr
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _dos_getfileattr routine uses system call 0x43 to obtain the
     current attributes of the file or directory pointed to by
     <pathname>. The attributes are copied to the low-order byte of the
     <attrib> word. Attributes are represented by the following
     manifest constants:
 
     _A_ARCH       _A_NORMAL     _A_SYSTEM     _A_VOLID
     _A_HIDDEN     _A_RDONLY     _A_SUBDIR
 
     Return Value
 
     If successful, the function returns 0. Otherwise, it returns the
     DOS error code and sets errno to ENOENT, indicating that the
     target file or directory could not be found.
                                    -♦-