From 313c5510e2f13a551f5fa909bebbaa5463a720ee Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 28 Mar 2022 06:21:06 -0700 Subject: README: awkloop: test return value of geline right --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 336fb10..06871a0 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ The `cppawk` `man` page has the invocation and usage details. For instance, if we define a file called `awkloop.h` which has these contents :::c - #define awkloop(file) for (; getline < file || (close(file) && 0); ) + #define awkloop(file) for (; getline < file > 0 || (close(file) && 0); ) #define nextrec continue #define rule(cond) if (cond) -- cgit v1.2.3