annotate 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 |
rev |
line source |
74
|
1 /* vi: set sw=4 ts=4: */
|
|
2 /*
|
|
3 * hello.c - A hello world program.
|
|
4 */
|
|
5
|
|
6 #include "toys.h"
|
|
7
|
|
8 int yes_main(void)
|
|
9 {
|
|
10 for (;;) {
|
|
11 int i;
|
|
12 for (i=0; toys.optargs[i]; i++) {
|
|
13 if (i) xputc(' ');
|
|
14 xprintf("%s", toys.optargs[i]);
|
|
15 }
|
|
16 if (!i) xputc('y');
|
|
17 xputc('\n');
|
|
18 }
|
|
19
|
|
20 return 0;
|
|
21 }
|