Format
#include <recio.h>
#include <xxfdbk.h>
_XXOPFB_T *_Ropnfbk(_RFILE *fp);
Language Level: ILE C Extension
Threadsafe: Yes.
Description
The _Ropnfbk() function returns a pointer to a copy of the open feedback area for the file that is specified by fp.
The _Ropnfbk() function is valid for all types of files.
Return Value
The _Ropnfbk() function returns NULL if an error occurs. See Table 12 and Table 14 for errno settings.
Example that uses _Ropnfbk()
#include <stdio.h>
#include <stdlib.h>
#include <recio.h>
int main(void)
{
_RFILE *fp;
_XXOPFB_T *opfb;
/* Open the file for processing in arrival sequence. */
if (( fp = _Ropen ( "MYLIB/T1677RD1", "rr+, arrseq=Y" )) == NULL )
{
printf ( "Open failed\n" );
exit ( 1 );
}
/* Get the library and file names of the file opened. */
opfb = _Ropnfbk ( fp );
printf ( "Library: %10.10s\nFile: %10.10s\n",
opfb->library_name,
opfb->file_name);
_Rclose ( fp );
}
Related Information