Ddelete
Delete Directory
Ddelete() Opcode = 58 ($3A)
Used to delete a subdirectory, provided that it contains no files.
C macro format
int status;
char ^pathname;
status = Ddelete(pathname);
Machine language format
move.l
move.w
trap
addq.l
Inputs
pathname
pathname, - (sp)
#$3A, - (sp)
#1
#6,sp
long
A pointer to a null-terminated ASCII di
rectory path string (for instance, C:\NEW-
D1R).
Results
DO status word A 0 means that the directory was deleted without
problem, otherwise a negative GEMDOS error num
ber is returned.
See also
Dcreate()
268