Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Programming Guide

File type equivalence

A C file declaration depends on the platform, but it often starts as follows:

Figure 58. Start of the C declaration for its FILE type
     struct __file {
         unsigned char  *__bufPtr;
      ... } FILE;

All we want is a pointer (or token) for a file, so we can finesse this translation with:

Figure 59. PL/I equivalent for a C file
     define struct    1 file;
     define alias     file_Handle  handle file;

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)