home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 8
/
CDASC08.ISO
/
NEWS
/
677
/
TSRTOOLS
/
CHMOD.C
< prev
next >
Wrap
Text File
|
1993-10-07
|
343b
|
25 lines
/*
chmod.C
Copyright (C) 1993, Geoff Friesen B.Sc.
All rights reserved.
*/
#define INCL_CHMOD
int _chmod (const char *path, int func, int attrib)
{
asm mov ah, 43h
asm mov al, func
asm mov cx, attrib
asm mov dx, path
asm int 21h
asm mov ax, cx
asm jnc _chmod1
asm mov ax, -1
_chmod1:
}