grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / rexxsupport / delete.c
blob428b84ebd36f4f78f6be94fd7ed37e91dd97a4c2
1 /*
2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Delete a file
6 Lang: English
7 */
9 #include <proto/exec.h>
10 #include <proto/dos.h>
11 #include <proto/rexxsyslib.h>
12 #include <exec/types.h>
13 #include <exec/memory.h>
14 #include <rexx/storage.h>
15 #include <rexx/errors.h>
17 #include <ctype.h>
18 #include <stdlib.h>
20 #include "rexxsupport_intern.h"
21 #include "rxfunctions.h"
23 LONG rxsupp_delete(struct Library *RexxSupportBase, struct RexxMsg *msg, UBYTE **argstring)
25 BOOL ok;
27 ok = DeleteFile(ARG1(msg));
28 *argstring = CreateArgstring(ok ? "1" : "0", 1);
30 return RC_OK;