From 70a6cd85abf2a7888941985cb42f1cc4e8ca41b3 Mon Sep 17 00:00:00 2001 From: Tibor Bizjak Date: Thu, 20 Jul 2023 15:50:52 +0200 Subject: [PATCH] renamed grep to find, starting refractoring --- .../04-find-no-overflow.c} | 0 .../04-grep-opt.c => 04-find/04-find-opt.c} | 0 .../04-grep/04-grep-input.c | 15 --------------- 3 files changed, 15 deletions(-) rename k&r/04-funcs-and-prog-struct/{04-grep/04-grep-grace.c => 04-find/04-find-no-overflow.c} (100%) rename k&r/04-funcs-and-prog-struct/{04-grep/04-grep-opt.c => 04-find/04-find-opt.c} (100%) delete mode 100644 k&r/04-funcs-and-prog-struct/04-grep/04-grep-input.c diff --git a/k&r/04-funcs-and-prog-struct/04-grep/04-grep-grace.c b/k&r/04-funcs-and-prog-struct/04-find/04-find-no-overflow.c similarity index 100% rename from k&r/04-funcs-and-prog-struct/04-grep/04-grep-grace.c rename to k&r/04-funcs-and-prog-struct/04-find/04-find-no-overflow.c diff --git a/k&r/04-funcs-and-prog-struct/04-grep/04-grep-opt.c b/k&r/04-funcs-and-prog-struct/04-find/04-find-opt.c similarity index 100% rename from k&r/04-funcs-and-prog-struct/04-grep/04-grep-opt.c rename to k&r/04-funcs-and-prog-struct/04-find/04-find-opt.c diff --git a/k&r/04-funcs-and-prog-struct/04-grep/04-grep-input.c b/k&r/04-funcs-and-prog-struct/04-grep/04-grep-input.c deleted file mode 100644 index 77f183d..0000000 --- a/k&r/04-funcs-and-prog-struct/04-grep/04-grep-input.c +++ /dev/null @@ -1,15 +0,0 @@ -#include - -#define W 80 -#define REPEAT 4000000 - -int main() -{ - int i, j; - for (i = 0; i < REPEAT; i++) { - for (j = 0; j < W; j++) - putchar('y'); - putchar('\n'); - } - return 0; -}