cleanup debug
[AROS.git] / test / dos / namefromfh.c
blob51bfa71f1c57d6f1200d848acd6ad8a4bb0c8db2
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/dos.h>
7 #include <stdio.h>
9 int main(void)
11 TEXT buffer[512];
12 BPTR fh = Open("__TEST__", MODE_NEWFILE);
14 if (fh != BNULL)
16 if (NameFromFH(fh, buffer, 512))
18 printf("got name: %s\n", buffer);
20 else
22 printf("namefromlock failed. ioerr = %ld\n", IoErr());
25 Close(fh);
26 DeleteFile("__TEST__");
28 else
30 printf("couldn't create file\n");
34 return 0;