Defines | Functions

lib_ines.c File Reference

#include "lib_ines.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for lib_ines.c:

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 Documentation

#define SAFE_FREE (   x )    do { free(x); (x) = 0; } while(0)

Definition at line 12 of file lib_ines.c.


Function Documentation

UNIF_RETURN_CODE check_header_INES ( const ines_header_t header )

Definition at line 93 of file lib_ines.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE close_INES ( FILE *  file )

Definition at line 38 of file lib_ines.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE open_INES ( const char *  filename,
FILE **  file,
UNIF_OPEN_MODE  mode 
)

Definition at line 17 of file lib_ines.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE read_data_INES ( FILE *  file,
uint8_t **  dst,
size_t  len 
)

Definition at line 111 of file lib_ines.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE read_header_INES ( FILE *  file,
ines_header_t header 
)

Definition at line 54 of file lib_ines.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE write_header_INES ( FILE *  file,
const ines_header_t header 
)

Definition at line 74 of file lib_ines.c.

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Enumerations Enumerator Defines