Mercurial > hg > toybox
view toys/yes.c @ 183:93899f7c3e0c
Rebuild toybox when a header file changes
author | Charlie Shepherd <masterdriverz@gentoo.org> |
---|---|
date | Sun, 25 Nov 2007 16:54:29 +0000 |
parents | bb6048c923ec |
children | 25447caf1b4b |
line wrap: on
line source
/* vi: set sw=4 ts=4: */ /* * yes.c - Repeatedly output a string. */ #include "toys.h" int yes_main(void) { for (;;) { int i; for (i=0; toys.optargs[i]; i++) { if (i) xputc(' '); xprintf("%s", toys.optargs[i]); } if (!i) xputc('y'); xputc('\n'); } return 0; }