Topic : The ATARI Compendium
Author : Scott Sanders / JAY Software
Version : 1.25 (20/6/2003)
Subject : Documentation
Nodes : 1117
Index Size : 32614
HCP-Version : 6
Compiled on : Atari
@charset : UTF-8
@lang : en
@default :
@help : %About
@options : +g -i -t4 +y +z
@width : 100
View Ref-FileDdelete()Fdelete() GEMDOSSyntaxLONG Fdelete( fname )
char *fname;
Function Fdelete() deletes the specified file.
Opcode 65 (0x41)
Availability All GEMDOSversions.
Parameters fname is the GEMDOS file specification of the file to be
deleted.
Binding pea fname
move.w #$41,-(sp)
trap #1
addq.l #6,sp
Return Value Fdelete() returns E_OK (0) if the operation was successful
or a negative GEMDOS error code if it fails.
Caveats Do not attempt to delete a file that is currently open or
unpredictable results will occur.
Comments Ddelete() must be used to delete subdirectories.
See Also Ddelete()