The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact email@example.com.
/* This program illustrates how to use subfiles. */
#define LEN 10
#define NUM_RECS 20
#define SUBFILENAME "*LIBL/T1520DDG"
#define PFILENAME "*LIBL/T1520DDH"
#define RECLEN sizeof(pf_t)
void init_subfile(_RFILE *, _RFILE *);
/* Open the subfile and the physical file. */
if ((pf = _Ropen(PFILENAME, "rr")) == NULL)
printf("can't open file %s\n", PFILENAME);
Working with File Systems and Devices 223
if ((subf = _Ropen(SUBFILENAME, "ar+")) == NULL)
printf("can't open file %s\n", SUBFILENAME);
/* Initialize the subfile with records from the physical file. */
/* Write the subfile to the display by writing a record to the */
/* subfile control format. */
_Rwrite(subf, "", 0);
_Rreadn(subf, "", 0, __DFT);
/* Close the physical file and the subfile. */
void init_subfile(_RFILE *pf, _RFILE *subf)
/* Select the subfile record format. */
for (i = 1; i <= NUM_RECS; i++)
fb = _Rreadn(pf, &record, RECLEN, __DFT);
This mailing list archive is Copyright 1997-2023 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.