#include "lib_unif.h"#include <assert.h>#include <string.h>#include <stdlib.h>
Go to the source code of this file.
Defines | |
| #define | SAFE_FREE(x) do { free(x); (x) = 0; } while(0) |
Functions | |
| UNIF_RETURN_CODE | open_UNIF (const char *filename, FILE **file, UNIF_OPEN_MODE mode) |
| UNIF_RETURN_CODE | check_header_UNIF (unif_header_t *header) |
| UNIF_RETURN_CODE | close_UNIF (FILE *file) |
| UNIF_RETURN_CODE | read_header_UNIF (FILE *file, unif_header_t *header) |
| UNIF_RETURN_CODE | write_header_UNIF (FILE *file, unif_header_t *header) |
| UNIF_RETURN_CODE | read_chunk_UNIF (FILE *file, unif_chunk_t *chunk_header, void **chunk_data) |
| UNIF_RETURN_CODE | write_chunk_UNIF (FILE *file, unif_chunk_t *chunk_header, void *chunk_data) |
| const char * | get_error_string_UNIF (UNIF_RETURN_CODE code) |
| #define SAFE_FREE | ( | x ) | do { free(x); (x) = 0; } while(0) |
Definition at line 13 of file lib_unif.c.
| UNIF_RETURN_CODE check_header_UNIF | ( | unif_header_t * | header ) |
| UNIF_RETURN_CODE close_UNIF | ( | FILE * | file ) |
| const char* get_error_string_UNIF | ( | UNIF_RETURN_CODE | code ) |
| UNIF_RETURN_CODE open_UNIF | ( | const char * | filename, |
| FILE ** | file, | ||
| UNIF_OPEN_MODE | mode | ||
| ) |
| UNIF_RETURN_CODE read_chunk_UNIF | ( | FILE * | file, |
| unif_chunk_t * | chunk_header, | ||
| void ** | chunk_data | ||
| ) |
| UNIF_RETURN_CODE read_header_UNIF | ( | FILE * | file, |
| unif_header_t * | header | ||
| ) |
| UNIF_RETURN_CODE write_chunk_UNIF | ( | FILE * | file, |
| unif_chunk_t * | chunk_header, | ||
| void * | chunk_data | ||
| ) |
| UNIF_RETURN_CODE write_header_UNIF | ( | FILE * | file, |
| unif_header_t * | header | ||
| ) |