2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
18 buffer
= malloc(maxsize
);
20 printf("Enter writesize (< 524288)\n");
21 scanf("%d", &writesize
);
23 fh
= Open("seek_test_file", MODE_NEWFILE
);
24 FWrite(fh
, (STRPTR
)buffer
, writesize
, 1);
26 printf("File pos: %d\n", (int)Seek(fh
, 0, OFFSET_CURRENT
));
27 filepos
= Seek(fh
, writesize
, OFFSET_BEGINNING
);
30 printf("ERROR for size: %d, IoErr: %d\n", (int)writesize
, (int)IoErr());