Defines | Functions

lib_unif.c File Reference

#include "lib_unif.h"
#include <assert.h>
#include <string.h>
#include <stdlib.h>
Include dependency graph for lib_unif.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_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 Documentation

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

Definition at line 13 of file lib_unif.c.


Function Documentation

UNIF_RETURN_CODE check_header_UNIF ( unif_header_t header )

Definition at line 39 of file lib_unif.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE close_UNIF ( FILE *  file )

Definition at line 69 of file lib_unif.c.

Here is the caller graph for this function:

const char* get_error_string_UNIF ( UNIF_RETURN_CODE  code )

Definition at line 183 of file lib_unif.c.

Here is the caller graph for this function:

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

Definition at line 18 of file lib_unif.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE read_chunk_UNIF ( FILE *  file,
unif_chunk_t chunk_header,
void **  chunk_data 
)

Definition at line 125 of file lib_unif.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE read_header_UNIF ( FILE *  file,
unif_header_t header 
)

Definition at line 85 of file lib_unif.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE write_chunk_UNIF ( FILE *  file,
unif_chunk_t chunk_header,
void *  chunk_data 
)

Definition at line 160 of file lib_unif.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE write_header_UNIF ( FILE *  file,
unif_header_t header 
)

Definition at line 105 of file lib_unif.c.

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Enumerations Enumerator Defines