|
Purpose |
Fetches a record from the workfile | |
|
Old name |
#define fetch_workfile(index,data) wkf_fetch(data,index) | |
|
Syntax |
void wkf_fetch(dp4rec,index) | |
|
Parameters |
short* dp4rec |
Pointer to the L field of record to hold record |
|
|
int index |
Index of record in work file to be fetched |
|
Description |
The wkf_fetch() function reads a record from the workfile which has been previously posted using the function wkf_post(). The position of the records in the workfile is determined by the index, which starts from 0. This function reads the record by calling the functions tf_seek() and tf_read_record(). The read operation is fast with these functions. Note that if a call to wkf_fetch() is not successful, an error message is generated with the function sys_error(). | |
|
See also |
||
|
Example |
See example for wkf_open() | |