Mercurial > hg > toybox
view toys/yes.c @ 104:1c2f6d2e25de
Precalculate block and inode usage given a starting file tree. This compiles,
probably doesn't actually work yet.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 18 Feb 2007 16:24:55 -0500 |
parents | dfe99495acbc |
children | bb6048c923ec |
line wrap: on
line source
/* vi: set sw=4 ts=4: */ /* * hello.c - A hello world program. */ #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; }