The Complete SPRLIB & ANNLIB

fprintf_compressed_dataset

- write a compressed dataset to a file

SYNOPSIS

DATASET *fprintf_dataset (filename, dset)

ARGUMENTS

char *filename The name of the file to be written.
DATASET *dset A pointer to the DATASET to be written.

RETURNS

TRUE if an error occured, FALSE otherwise.

FUNCTION

This routine attaches .Z to filename and opens a pipe through the compress shell command. This pipe is used as the stream argument in a call to fprintf_dataset.

NOTE

The compress command must be available in the user's search path. Writing 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

fprintf_pattern, fprintf_io_pattern, fprintf_header, fprintf_sample, fprintf_dataset, fprintf_dataset, load_dataset

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