2 Copyright © 1995-2014, 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";
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
, buf
, cs
.CS_CurChr
);
35 Printf("ERROR: Unrecoverable loop detected!\n");
38 } while (res
!= ITEM_NOTHING
);