#ifndef _WRAPPER_H
#define _WRAPPER_H
#include 
#include 

typedef enum dyn_mem_metrics_type {
  strdups,
  mallocs,
  reallocs,
  callocs,
  frees,
  in_use,
  heap_size
} dyn_mem_metrics_type;

long dyn_mem_info(dyn_mem_metrics_type metric);

size_t STRLCAT(char * dest, const char *src, size_t destsize);
size_t STRLCPY(char * dest, const char *src, size_t destsize);

int ATOI      (const char *nptr);
char *STRDUP  (const char * s);
void *REALLOC (void * ptr, size_t size); 
void *MALLOC  (size_t size);
void *CALLOC  (size_t nmemb, size_t size);
void FREE     (const void * p);

void FORMAT (char * buf, int bufsize, const char * format, ... )
		__attribute__ ((format (printf, 3, 4)));
void FORMAT_AP (char * buf, int bufsize, const char * format, va_list va);

#endif