aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-03-28 06:21:06 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-03-28 06:21:06 -0700
commit313c5510e2f13a551f5fa909bebbaa5463a720ee (patch)
tree8ee9cb1d4d0cb3d4c8badf3dbbaae28e5b528205
parent855d023555b0a1c50b9f888dcb49d6a34afcfcf3 (diff)
downloadcppawk-313c5510e2f13a551f5fa909bebbaa5463a720ee.tar.gz
cppawk-313c5510e2f13a551f5fa909bebbaa5463a720ee.tar.bz2
cppawk-313c5510e2f13a551f5fa909bebbaa5463a720ee.zip
README: awkloop: test return value of geline right
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
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)