Mission Base

Program Base Library Functions

long pblKfRead

( pblKeyFile_t* k, void* data, long datalen )

Read the data of the current record of the file.

Documentation

Read the data of the current record of the file.

The caller can restrict the number of bytes read by specifying the maximum number of bytes to read by parameter datalen, if datalen is 0, all bytes stored for the current record are copied to the buffer pointed to by data.

RESTRICTIONS:
- data must point to an area of memory being big enough to hold the bytes copied
- datalen must not be negative, it is ignored otherwise

Parameters:
k - key file to read from
data - data to insert
datalen - length of the data
Returns:
int rc == 0: call went ok, rc is the number of bytes copied
int rc != 0: some error occured, see pbl_errno

Alphabetic index



This page was generated with the help of DOC++.