use the locations specified in the bcm2708_boot header
[AROS.git] / test / minicat.c
blob1814f6ceccacd00bfdb123ef01f024ff01dd1d63
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <stdio.h>
7 #include <exec/types.h>
8 #include <dos/dos.h>
9 #include <dos/dosextens.h>
10 #include <dos/bptr.h>
11 #include <proto/dos.h>
13 int main(int argc, char **argv) {
14 BPTR in, out;
15 char buf[256];
16 LONG len;
18 if (argc > 1) {
19 if ((in = Open(argv[1], MODE_OLDFILE)) == BNULL) {
20 Fault(IoErr(), "minicat", buf, 255);
21 fprintf(stderr, "%s\n", buf);
22 return 1;
25 else
26 in = Input();
28 out = Output();
30 while ((len = Read(in, buf, 256)) > 0)
31 Write(out, buf, len);
33 if (argc > 1)
34 Close(in);
36 return 0;