_Ropnfbk () -获取开放式反馈信息

格式

#include <recio.h>
#include <xxfdbk.h>

_XXOPFB_T *_Ropnfbk(_RFILE *fp);

语言级别

ILE C 扩展

线程安全

描述

_Ropnfbk() 函数返回指向 fp指定的文件的打开反馈区域副本的指针。

_Ropnfbk() 函数对所有类型的文件都有效。

返回值

如果发生错误,那么 _Ropnfbk() 函数将返回 NULL。 请参阅 表 1表 1 以获取 errno 设置。

示例

#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 );
}

相关信息