VistaIOWriteFile(3) | Library Functions Manual | VistaIOWriteFile(3) |
VistaIOWriteFile - write a Vista data file
#include <stdio> #include <vistaio.h>
VistaIOBoolean VistaIOWriteFile (file, list)
FILE *file; VistaIOAttrList list;
VistaIOWriteFile writes an attribute list as a Vista data file. Attributes are written in the order that they appear in the list. As they are written, attribute values are converted from internal form (e.g., a VistaIOImage data structure) to external form according to the conventions described by VistaIOattribute(3) and VistaIOtype(3).
If VistaIOWriteFile is successful it returns TRUE. In this case it will have written everything from the Vista data file header to the last byte of binary data. If VistaIOWriteFile encounters an error, however, it returns FALSE while perhaps leaving the file incomplete.
VistaIOWriteImages(3), VistaIOWriteObjects(3),
VistaIOWriteUbcIff(3), stdio(3),
VistaIOtype(3)
Data is written to the stream sequentially, permitting the stream to be a pipe. No rewind is performed either before writing or after.
Art Pope <pope@cs.ubc.ca>
Adaption to vistaio: Gert Wollny <gw.fossdev@gmail.com>
24 April 1993 | VistaIO Version 1.2.14 |