11 int main(int argc
, char **argv
)
13 struct hscroll hscroll
;
15 unsigned width
, count
;
18 g_printerr("Usage: %s TEXT SEPARATOR WIDTH COUNT\n", argv
[0]);
23 setlocale(LC_CTYPE
,"");
26 hscroll_reset(&hscroll
);
28 width
= atoi(argv
[3]);
29 count
= atoi(argv
[4]);
31 for (unsigned i
= 0; i
< count
; ++i
) {
32 p
= strscroll(&hscroll
, argv
[1], argv
[2], width
);
36 hscroll_step(&hscroll
);
39 hscroll_reset(&hscroll
);