Problems are occurring downloading from downloads.sourceforge.net, so use
[tangerine.git] / workbench / c / Touch.c
blob7d300f48757a292dc9adc2ef2cebfa84234e0f56
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Touch CLI command.
6 Lang: english
7 */
9 #include <dos/dos.h>
10 #include <proto/dos.h>
11 #include <dos/filesystem.h>
13 int __nocommandline;
15 int main(void)
17 IPTR args[1] = {NULL};
18 struct RDArgs *rda = ReadArgs("NAME/A", args, NULL);
20 if (rda)
22 BPTR fh = Open((STRPTR)args[0], FMF_CREATE);
23 if (fh)
25 Close(fh);
26 return RETURN_OK;
29 PrintFault(IoErr(), NULL);
31 return RETURN_FAIL;