2 Copyright © 1995-2015, The AROS Development Team. All rights reserved.
6 #include <proto/alib.h>
7 #include <dos/rdargs.h>
11 int __nocommandline
= 1;
13 /* No newline in the end! Important! */
14 static char text
[] = "WORD1 WORD2 WORD3";
21 LONG result
= RETURN_OK
, res
;
24 cs
.CS_Length
= sizeof(text
) - 1;
30 res
= ReadItem(buf
, sizeof(buf
), &cs
);
32 Printf("Step %ld, result %ld, buffer %s, CurChr %ld\n", i
++, res
,
36 Printf("ERROR: Unrecoverable loop detected!\n");
37 result
= RETURN_ERROR
;
41 while (res
!= ITEM_NOTHING
);