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_setfileattr
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _dos_setfileattr routine uses system call 0x43 to set the
     attributes of the file or directory pointed to by <pathname>. The
     actual attributes are contained in the low-order byte of the
     <attrib> word. Attributes are represented by the following
     manifest constants:
 
     _A_ARCH       _A_RDONLY     _A_SYSTEM
     _A_HIDDEN     _A_SUBDIR     _A_VOLID
     _A_NORMAL
 
     Return Value
 
     The function returns 0 if successful. Otherwise, it returns the
     DOS error code and sets errno to either EACCES or ENOENT.
                                    -♦-