doschmod
Purpose
Changes the mode of a DOS file.
Library
DOS Services Library (libdos.a)
Syntax
#include <dos.h>
int doschmod (path, mode)
char *path;
long mode;
Description
The doschmod subroutine changes the mode of the file
specified by the path parameter to the mode specified by
the mode parameter. (For information about modes, see
"doscreate.")
Return Value
Upon successful completion, a value of 0 is returned. If
the doschmod subroutine fails, a value of -1 is returned
and doserrno is set to indicate the error.
Related Information
In this book: "DOS services library," "doscreate," and
"dosopen."