diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-03-28 06:21:06 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-03-28 06:21:06 -0700 |
commit | 313c5510e2f13a551f5fa909bebbaa5463a720ee (patch) | |
tree | 8ee9cb1d4d0cb3d4c8badf3dbbaae28e5b528205 | |
parent | 855d023555b0a1c50b9f888dcb49d6a34afcfcf3 (diff) | |
download | cppawk-313c5510e2f13a551f5fa909bebbaa5463a720ee.tar.gz cppawk-313c5510e2f13a551f5fa909bebbaa5463a720ee.tar.bz2 cppawk-313c5510e2f13a551f5fa909bebbaa5463a720ee.zip |
README: awkloop: test return value of geline right
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |