|
Purpose |
Posts record to the workfile | |
|
Old name |
#define post_workfile(index,data) wkf_post(data,index) | |
|
Syntax |
void wkf_post(dp4rec, index) | |
|
Parameters |
short* dp4rec |
Pointer to the L field of the DP4 record to post to the workfile for its table |
|
|
int index |
Index giving order in file to write record |
|
Description |
The wkf_post() function posts a data record to the workfile previously set up with a call to the wkf_open() function. The record's table must correspond to that passed to the call to wkf_open(). The index indicates where the record is to be written. The exact position is given by: index * (*dp4rec) where (*dp4rec) is the value in the L field. This means that the index starts from zero. This index is needed to retrieve the file with a subsequent call to the wkf_fetch() function. Do not post records with an index until all indexes less than it have been used in previous calls to wkf_post(). | |
|
See also |
||
|
Example |
See the example for wkf_open() | |