#include "lib_ines.h"#include <assert.h>#include <stdlib.h>#include <string.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_INES (const char *filename, FILE **file, UNIF_OPEN_MODE mode) |
| UNIF_RETURN_CODE | close_INES (FILE *file) |
| UNIF_RETURN_CODE | read_header_INES (FILE *file, ines_header_t *header) |
| UNIF_RETURN_CODE | write_header_INES (FILE *file, const ines_header_t *header) |
| UNIF_RETURN_CODE | check_header_INES (const ines_header_t *header) |
| UNIF_RETURN_CODE | read_data_INES (FILE *file, uint8_t **dst, size_t len) |
| #define SAFE_FREE | ( | x ) | do { free(x); (x) = 0; } while(0) |
Definition at line 12 of file lib_ines.c.
| UNIF_RETURN_CODE check_header_INES | ( | const ines_header_t * | header ) |
| UNIF_RETURN_CODE close_INES | ( | FILE * | file ) |
| UNIF_RETURN_CODE open_INES | ( | const char * | filename, |
| FILE ** | file, | ||
| UNIF_OPEN_MODE | mode | ||
| ) |
| UNIF_RETURN_CODE read_data_INES | ( | FILE * | file, |
| uint8_t ** | dst, | ||
| size_t | len | ||
| ) |
| UNIF_RETURN_CODE read_header_INES | ( | FILE * | file, |
| ines_header_t * | header | ||
| ) |
| UNIF_RETURN_CODE write_header_INES | ( | FILE * | file, |
| const ines_header_t * | header | ||
| ) |