8 #include "TIO_PrintHandlerExtern.h"
24 #define nint(a) ((int) floor (a + 0.5))
26 #define ERRTAG "ERROR:\t"
27 #define WARNTAG "WARNING:\t"
77 void*
my_calloc(
size_t nelem,
size_t size);
86 int ncmin,
int ncmax);
88 int nrmax,
int ncmin,
int ncmax,
int ndmin,
int ndmax);
90 void**
alloc_matrix(
int nrmin,
int nrmax,
int ncmin,
int ncmax,
92 void ***
alloc_matrix3(
int nrmin,
int nrmax,
int ncmin,
int ncmax,
93 int ndmin,
int ndmax,
size_t elsize);
94 void ****
alloc_matrix4(
int nrmin,
int nrmax,
int ncmin,
int ncmax,
95 int ndmin,
int ndmax,
int nemin,
int nemax,
size_t elsize);
97 void free_matrix(
void *vptr,
int nrmin,
int nrmax,
int ncmin,
99 void free_matrix3(
void *vptr,
int nrmin,
int nrmax,
int ncmin,
int ncmax,
100 int ndmin,
size_t elsize);
101 void free_matrix4(
void *vptr,
int nrmin,
int nrmax,
int ncmin,
int ncmax,
102 int ndmin,
int ndmax,
int nemin,
size_t elsize);
105 int ncmax,
int ndmin,
int ndmax,
char *file);
121 char *
my_strncpy(
char *dest,
const char *src,
size_t size);
122 char *
my_strtok(
char *ptr,
const char *tokens, FILE * fp,
char *buf);
124 FILE*
my_fopen(
const char *fname,
const char *flag,
int prompt);
125 char *
my_fgets(
char *buf,
int max_size, FILE * fp);
143 int ipow(
int base,
int exp);
FILE * my_fopen(const char *fname, const char *flag, int prompt)
void ** alloc_matrix(int nrmin, int nrmax, int ncmin, int ncmax, size_t elsize)
void free_matrix4(void *vptr, int nrmin, int nrmax, int ncmin, int ncmax, int ndmin, int ndmax, int nemin, size_t elsize)
char * my_strncpy(char *dest, const char *src, size_t size)
void free_matrix(void *vptr, int nrmin, int nrmax, int ncmin, size_t elsize)
int ipow(int base, int exp)
void free_matrix3(void *vptr, int nrmin, int nrmax, int ncmin, int ncmax, int ndmin, size_t elsize)
t_linked_int * insert_in_int_list(t_linked_int *head, int data, t_linked_int **free_list_head_ptr)
void * my_realloc(void *ptr, size_t size)
void * my_chunk_malloc(size_t size, t_chunk *chunk_info)
void alloc_ivector_and_copy_int_list(t_linked_int **list_head_ptr, int num_items, struct s_ivec *ivec, t_linked_int **free_list_head_ptr)
void * my_calloc(size_t nelem, size_t size)
struct s_linked_vptr * chunk_ptr_head
struct s_linked_int t_linked_int
void free_ivec_vector(struct s_ivec *ivec_vector, int nrmin, int nrmax)
struct s_linked_vptr * delete_in_vptr_list(struct s_linked_vptr *head)
void free_ivec_matrix(struct s_ivec **ivec_matrix, int nrmin, int nrmax, int ncmin, int ncmax)
void free_int_list(t_linked_int **int_list_head_ptr)
int limit_value(int cur, int max, const char *name)
char * my_strtok(char *ptr, const char *tokens, FILE *fp, char *buf)
struct s_linked_vptr * next
struct s_linked_vptr * insert_in_vptr_list(struct s_linked_vptr *head, void *vptr_to_add)
void **** alloc_matrix4(int nrmin, int nrmax, int ncmin, int ncmax, int ndmin, int ndmax, int nemin, int nemax, size_t elsize)
boolean file_exists(const char *filename)
char * my_fgets(char *buf, int max_size, FILE *fp)
struct s_linked_int * next
void free_chunk_memory(t_chunk *chunk_info)
unsigned char(* messagelogger)(TIO_MessageMode_t messageMode, char *pszMessage,...)
int my_atoi(const char *str)
char * my_strdup(const char *str)
void *** alloc_matrix3(int nrmin, int nrmax, int ncmin, int ncmax, int ndmin, int ndmax, size_t elsize)
void * my_malloc(size_t size)
void my_srandom(int seed)
void free_ivec_matrix3(struct s_ivec ***ivec_matrix3, int nrmin, int nrmax, int ncmin, int ncmax, int ndmin, int ndmax)
void print_int_matrix3(int ***vptr, int nrmin, int nrmax, int ncmin, int ncmax, int ndmin, int ndmax, char *file)
struct s_linked_vptr t_linked_vptr