|
Purpose |
Writes a DP4 record to a file | ||
|
Old names |
#define _vwrite tf_write_record | ||
|
Syntax (CCOWN) |
void tf_write_record(file_handle, short *datarec) | ||
|
Syntax (DP4DBAPI) |
BOOLEAN dp4_sf_write_record(FCONN * fconn,const short * datarec) | ||
|
Parameters |
int file_handle, |
File handle of file | |
|
|
FCONN * fconn |
File handle of file | |
|
|
short* datarec |
Pointer to the data to write to the file. The first two bytes must specify the length of the record. | |
|
Description |
The tf_write_record() and sf_write_record() functions write a DP4 record to the current position in a file. You obtain the file handle with a successful call to tf_open() or sf_open(). The sf_write_record() function calls the file handling support in the database manager, and the tf_write_record() function calls the file handling support in the terminal manager. You must not mix up the server file functions with terminal file functions. A DP4 record is a record corresponding to a structure of the form below:
The L field is used to determine the number of bytes to write to the file. The file pointer is automatically incremented. | ||
|
See also |
|||
|
Example |
| ||