aboutsummaryrefslogtreecommitdiff
path: root/extras/yes.c
diff options
context:
space:
mode:
Diffstat (limited to 'extras/yes.c')
-rw-r--r--extras/yes.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/extras/yes.c b/extras/yes.c
deleted file mode 100644
index cd4c13b..0000000
--- a/extras/yes.c
+++ /dev/null
@@ -1,24 +0,0 @@
-/* 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;
-}