12345678910111213141516171819202122232425 |
- /* SPDX-License-Identifier: GPL-3.0+ */
- /*
- * Copyright (C) 2022, 2023 Ferass El Hafidi <vitali64pmemail@protonmail.com>
- * Copyright (C) 2022 Ron Nazarov <ron@noisytoot.org>
- */
- #include <string.h>
- #include <stdio.h>
- int main(int argc, char *argv[]) {
- setvbuf(stdout, NULL, _IONBF, 0);
- if (argc > 1) {
- if (!strcmp(argv[1], "--")) {
- if (--argc == 1) goto yes;
- argv = &argv[1];
- }
- while(1) {
- for (int i = 1; i < argc; i++) printf("%s%c", argv[i], i == argc - 1 ? '\n' : ' ');
- }
- } else {
- yes:
- while(1) printf("y\n");
- }
- return 0;
- }
|