2 #include <proto/alib.h>
3 #include <dos/rdargs.h>
7 int __nocommandline
= 1;
9 /* No newline in the end!!! Important!!! */
10 static char text
[] = "WORD1 WORD2 WORD3";
20 cs
.CS_Length
= sizeof(text
) - 1;
26 res
= ReadItem(buf
, sizeof(buf
), &cs
);
28 Printf("Step %ld, result %ld, buffer %s, CurChr %ld\n", i
++, res
, buf
, cs
.CS_CurChr
);
31 Printf("ERROR: Unrecoverable loop detected!\n");
34 } while (res
!= ITEM_NOTHING
);