062c74f | Jamozed | 2020-07-07 00:00:35 |
0 |
// yes.c, version 1.0.1 |
cf2d47a | Jamozed | 2020-06-26 17:04:08 |
1 |
// OMKOV coreutils implementation of yes |
cf2d47a | Jamozed | 2020-06-26 17:04:08 |
2 |
// Copyright (C) 2020, Jakob Wakeling |
e2140ec | Jamozed | 2022-03-06 15:27:45 |
3 |
// MIT Licence |
cf2d47a | Jamozed | 2020-06-26 17:04:08 |
4 |
|
cf2d47a | Jamozed | 2020-06-26 17:04:08 |
5 |
#include <stdio.h> |
cf2d47a | Jamozed | 2020-06-26 17:04:08 |
6 |
|
062c74f | Jamozed | 2020-07-07 00:00:35 |
7 |
int main(int ac, char *av[]) { |
062c74f | Jamozed | 2020-07-07 00:00:35 |
8 |
if (ac == 1) for (;;) { puts("y"); } |
062c74f | Jamozed | 2020-07-07 00:00:35 |
9 |
else for (;;) { puts(av[1]); } |
cf2d47a | Jamozed | 2020-06-26 17:04:08 |
10 |
} |
11 |