Re: Checking for NULL field in C when using Record I/O
Patrik Schindler <[email protected]> Sun, 20 Oct 2024 18:14:18 +0200
| Newsgroups | gmane.comp.lang.as400.c |
|---|---|
| Message-ID | <[email protected]> |
Hello Mark, Am 20.10.2024 um 15:55 schrieb Mark Waterbury <[email protected]>: > See: > https://www.ibm.com/docs/en/ssw_ibm_i_74/rzarh/sc092712.pdf > > > Read pages 200-201. Thanks for the pointer! To make it more easy for other readers, these things need to be considered: - Expand #pragma mapinc. The "options" field must contain "nullflds". - Expand the _Rropen() call. The options string must contain "nullcap=y". - Compile with OPTIONS(*SHOWUSR) to see the additional struct(s) in the compiler log for subsequent writing of appropriate code. Everything else is somewhat tersely explained in the PDF linked by Mark. :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.