The Complete SPRLIB & ANNLIB

fscanf_compressed_network_small

- reads a compressed network in small I/O-format

SYNOPSIS

int fscanf_compressed_network_small (filename, net)

ARGUMENTS

char *filename A valid filename.
NET *net A pointer to a correctly constructed NET structure.

RETURNS

TRUE if an error occurred, FALSE if not.

FUNCTION

This function provides a shell around the fscanf_network_small function. It tries to determine from the filename if the file is compressed or not by looking if it has a .Z extension. If the filename ends in .Z or the normal file is not found, a pipe is opened to the zcat shell command to read the file in compressed form.

NOTE

The zcat command must be available in the user's search path. Reading compressed files does not work under Turbo-C / MS-DOS, since this combination does not support pipes. There may be a problem with portability using too long filenames. When a network is written in compressed form, .Z is added to the filename. If this filename already contains an extension, the file will not be properly named under MS-DOS.

SEE ALSO

fscanf_network, fscanf_network_small, fprintf_compressed_network_small

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