The Complete SPRLIB & ANNLIB

fscanf_pattern

- read a pattern from a specific class from a stream (LOCAL)

SYNOPSIS

int fscanf_pattern (stream, components, class, pattern)

ARGUMENTS

FILE *stream A valid filepointer.
int components The number of elements to be read, i.e. the maximum index of pattern.
int *class The class number of the pattern that was read.
double pattern[] A vector, with elements 1..components.

RETURNS

TRUE if an error was detected, FALSE if not.

FUNCTION

This routine reads one pattern from an opened stream and returns it, together with the class number to which it belongs. See DATASET-IO-format for the layout. First, remark lines (starting with !) are discarded. Then, the class number is read. Finally, all components elements are read into pattern.

NOTE

This function is used by the fscanf_dataset function through fscanf_sample.

SEE ALSO

fscanf_io_pattern, fscanf_header, fscanf_sample, fscanf_dataset, fscanf_compressed_dataset

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998