Functions HI-TECH C CHMOD
#include <stat.h> int chmod(char * name, int ) char * name; int mode;
This function changes the file attributes (or modes) of the named file. The argument name may be any valid file name. The mode argument may include all bits defined in stat.h except those relating to the type of the file, e.g. S_IFDIR. Note however that not all bits may be changed under all operating systems, e.g. neither DOS nor CP/M permit a file to be made unreadable, thus even if mode does not include S_IREAD the file will still be readable (and stat() will still return S_IREAD in flags).