
Series 30i/ 31i/ 32i-A
C executor library for conversion
Programming manual
01 04.05.06
S. Hasegawa
New registration
B-64183EN/01
EDIT
DATE
DESIG.
DESCRIPTION
155/226
DRAW.NO.
3.10.13
Get the File Information
[Name]
pl_fdir
[Syntax]
#include <pmclib.h>
short pl_fdir(short file_no, char * file_name, long * size);
[Arguments]
Input
file_no: File number
Set the file number.
Output
*file_name: File name
Set pointer to the array to store the file name. The array size
should be 17 bytes. The read file name is 17 characters. The file
name is not terminated with NUL ('\0'). When the file name is less
than 17 characters, space character will be added.
"AAAAAAAA.BBB "
*size: File size
Set pointer to the variable to store the file size.
[Return]
0: Normal completion.
-11: The reader / puncher interface is not opened.
5: The argument is invalid.
20: The communication status is invalid or the "DR" signal is OFF.
23: No specified file
[Description]
This function reads the file name and the file size.
You should open the interface by the calling of pl_fopen() with the
setting OP (cntl[0]) = 3n, not pl_fopen2(), before the calling of pl_fdir().
You should close the interface by the calling of pl_rsclose(), not
pl_rsclose2(), after the calling of pl_fdir(). If you want to read the
information of two or more files, call pl_fopen(), pl_fdir() and
pl_rsclose() repeatedly.
When you use this function, you cannot use the conventional function
related to The RS-232C communication in "C library for C executor"
together.
[Related Function]
fca_readdir()