diff options
Diffstat (limited to 'nhello.c')
-rw-r--r-- | nhello.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nhello.c b/nhello.c new file mode 100644 index 0000000..83f07b1 --- /dev/null +++ b/nhello.c @@ -0,0 +1,15 @@ +#include <u.h> +#include <libc.h> + +char c; +int n; + +void +main() +{ + read(0, &c, 1); + n = c-'0'; + while(n-- > 0) + write(1, "Hola mundo.\n", 12); + exits(0); +} |