Go to the first, previous, next, last section, table of contents.


5.2.3.5 File Input/Output

boolean_t type_write(const type_t *object, FILE *stream);
Writes objects of type type_t to the binary file stream in self-delimiting format and returns TRUE if and only if the write succeeds.
type_t *type_read(FILE *stream);
Reads object of type type_t from the binary file stream in self-delimiting format and returns it.
boolean_t type_fprintf(const type_t *object, FILE *stream);
Formats object of type type_t on ASCII file stream in self-delimiting human-readable format.
type_t *type_fscanf(FILE *stream);
Reads object of type type_t from ASCII file stream in self-delimiting human-readable format and returns it.
boolean_t type_backup(const type_t *object, FILE *stream);
Writes properties of an object of type type_t to the binary file stream in self-delimiting format and returns TRUE if and only if the write succeeds. This is used when
boolean_t type_restore(type_t *object, FILE *stream);
Reads properties of an object of type type_t from the binary file stream in self-delimiting format and returns TRUE if and only if the read succeeds and the objects properties are updated from the file stream.


Go to the first, previous, next, last section, table of contents.