
76
error, delete_topln returns an integer value of -1 and an error code
is set to the global variable fErrorCode to indicate the error
condition encountered. Possible error codes and their
interpretation are listed below.
fErrorCode
:
2:File specified by fd does not exist.
8:File not opened
9:The value of count is negative.
10:No more free file space for file extension.
eof
Purpose
:
Check if file pointer of a DAT file reaches end of file.
Syntax
:
int eof(int fd);
Example call
:
if (eof(fd)) _puts(“end of file reached!\n”);
Includes
:
#include “LIB_CL.h ”
Description
:
The eof function checks if the file pointer of the DAT file whose
file handle is specified in the argument fd, points to end-of-file.
Returns
:
The eof function returns an integer value of 1 to indicate an
end-of-file and a 0 when not. In case of error, eof returns an
integer value of -1 and an error code is set to the global variable
fErrorCode to indicate the error condition encountered.
fErrorCode
:
2:File specified by DBF_fd does not exist.
8:File not opened
filelength
Purpose
:
Get file length information of a DAT file.
Syntax
:
long filelength(int fd);
Example call
:
datasize = filelength(fd);
Includes
:
#include “LIB_CL.h ”
Description
:
The filelength function returns the size in number of bytes of the
DAT file whose file handle is specified in the argument fd.
Returns
:
The long integer value returned by filelength is the size of the
DAT file in number of bytes. In case of error, filelength returns a
long value of -1 and an error code is set to the global variable
fErrorCode to indicate the error condition encountered. Possible
error codes and their interpretation
.
fErrorCode
:
2:File specified by fd does not exist.
8:File not opened
filelist
Purpose
:
Get file directory information.
Syntax
:
int filelist(char * file_list);
Содержание PT-10
Страница 4: ...3 Keyboard Wedge 99 System 101 Power 102 Other 102 ...
Страница 13: ...12 6 Development Flow Chart ...
Страница 53: ...52 Returns No returns Notes ...