Checking for NULL field in C when using Record I/O
Patrik Schindler <[email protected]> Sun, 20 Oct 2024 15:41:38 +0200
| Newsgroups | gmane.comp.lang.as400.c |
|---|---|
| Message-ID | <[email protected]> |
Hello, either I'm too blind or searching the wrong way. What is the correct way to know a field being read with e. g. _Readn() is actually NULL, so I can subsequently ignore anything being in the respective field's read buffer? Actual code can be seen here: https://github.com/PoC-dev/ibmdocs-tools/blob/main/as400/listdocs.c (lines 177 ff, and 188 ff). Table definition: https://github.com/PoC-dev/ibmdocs-tools/blob/main/as400/ibmdoctypf.dds Thank you! :wq! PoC -- This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/c400-l or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/c400-l.