_Ropnfbk () -取得開放意見回饋資訊

格式

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

_XXOPFB_T *_Ropnfbk(_RFILE *fp);

語言層次

ILE C 延伸

安全執行緒

說明

_Ropnfbk() 函數會將指標傳回 fp所指定檔案的開啟回饋區域副本。

_Ropnfbk() 函數適用於所有類型的檔案。

回覆值

如果發生錯誤, _Ropnfbk() 函數會傳回 NULL。 如需錯誤碼設定,請參閱 表 1表 1

範例

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

相關資訊