The Complete SPRLIB & ANNLIB
load_network
- load a (compressed) network
SYNOPSIS
| NET *load_network |
(FileName) |
ARGUMENTS
char | *FileName | A valid filename. |
RETURNS
A pointer to a loaded network if successful, NULL in case of an error.
FUNCTION
This function provides a shell around the fscanf_network
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_compressed_network, fscanf_network_small, fscanf_compressed_network_small, fprintf_network, fprintf_network_small, fprintf_compressed_network, fprintf_compressed_network_small
This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998