home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
cpm
/
utils
/
asmutl
/
smmaclnk.ark
/
FILE.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1987-09-10
|
256 b
|
13 lines
/*
** file related functions
*/
#define NOCCARGC
open(name, mode) char *name, *mode; {
int fd;
if(fd = fopen(name, mode)) return(fd);
cant(name);
}
close(fd) int fd; {
if(fclose(fd)) error("Close Error");
}
if(fd = fopen(name, mod