extract_read()

Purpose

Reads a record from the extract file

Old name

#define read_extract extract_read

Syntax

int extract_read(data)

Parameters

short* data

Pointer to the L field of extract record to contain record that is read

Description

The function extract_read() reads a record from the extract file. The first call to this function resets the pointer to the start of the extract file.

Return values

Returns FALSE if a record has been read, otherwise TRUE

See also

extract_open(), extract_write(), extract_sort(), extract_close()

Example

if (!extract_read(&extract.l))
{..
/* See the example in extract_open */