home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
alde_c
/
misc
/
lib
/
dlibssrc
/
chmod.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1987-07-17
|
385 b
|
19 lines
#include <osbind.h>
#include <stdio.h>
int chmod(filename, pmode)
char *filename;
int pmode;
/*
* Change the mode attribute of <filename> to <pmode>. Values for
* <pmode> are the same as for the creat() function. Returns 0 for
* success, or a negative error code.
*/
{
register int rv;
if((rv = Fattrib(filename, 1, pmode)) < 0)
return(rv);
return(0);
}