home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Mecomp Multimedia 2
/
MECOMP-CD-II.iso
/
amiga
/
programmieren
/
c
/
vbcc
/
machines
/
amigappc
/
libsrc
/
stdio
/
remove.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
|
1997-12-30
|
359 b
|
19 lines
#include <stdio.h>
#include <dos/dos.h>
#include <powerup/gcclib/powerup_protos.h>
extern ULONG DOSBase;
int remove(const char *name)
{
struct Caos MyCaos;
MyCaos.d1 = (ULONG)name;
MyCaos.M68kCacheMode = IF_CACHEFLUSHALL;
MyCaos.PPCCacheMode = IF_CACHEFLUSHALL;
MyCaos.caos_Un.Offset = -72;
MyCaos.a6 = DOSBase;
return PPCCallOS(&MyCaos);
}