2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
10 int main(int argc
, char **argv
)
16 printf("Usage: %s <file name>\n", argv
[0]);
20 fh
= Open(argv
[1], MODE_OLDFILE
);
24 struct FileInfoBlock
*fib
;
26 printf("IsInteractive: %d\n", (int)IsInteractive(fh
));
28 fib
= AllocDosObject(DOS_FIB
, NULL
);
31 if (ExamineFH(fh
, fib
))
34 printf("Filename = %s\n" , fib
->fib_FileName
);
35 printf("Protection = 0x%08X\n", (unsigned)fib
->fib_Protection
);
39 printf("examinefh failed, ioerr = %d\n", (int)IoErr());
41 FreeDosObject(DOS_FIB
, fib
);
45 printf("couldn't allocate fileinfoblock\n");
52 printf("Couldn't open file\n");