56 #define NMEM_INT_PRINTF "%I64d"
60 #define NMEM_INT_PRINTF "%lld"
67 #define NMEM_INT_PRINTF "%d"
113 char ***darray,
int *num);
125 char ***darray,
int *num,
135 char ***darray,
int *num);
149 char ***darray,
int *num,
int collapse,
164 char ***darray,
int *num,
int collapse,
165 int escape_char,
int subst_escape);
void nmem_strsplitx(NMEM nmem, const char *delim, const char *dstr, char ***darray, int *num, int collapse)
allocates sub strings out of string using certain delimitors
void nmem_strsplit_blank(NMEM nmem, const char *dstr, char ***darray, int *num)
splits string into sub strings delimited by blanks
void nmem_strsplit(NMEM nmem, const char *delim, const char *dstr, char ***darray, int *num)
allocates sub strings out of string using certain delimitors
nmem_bool_t * nmem_booldup(NMEM nmem, nmem_bool_t v)
allocates and sets boolean for NMEM
void nmem_transfer(NMEM dst, NMEM src)
transfers memory from one NMEM handle to another
void nmem_strsplit_escape2(NMEM nmem, const char *delim, const char *dstr, char ***darray, int *num, int collapse, int escape_char, int subst_escape)
allocates sub strings out of string using certain delimitors
void nmem_strsplit_escape(NMEM nmem, const char *delim, const char *dstr, char ***darray, int *num, int collapse, int escape_char)
allocates sub strings out of string using certain delimitors
void nmem_reset(NMEM n)
releases memory associaged with an NMEM handle
int nmem_bool_t
BER/utility boolean.
struct nmem_control * NMEM
NMEM handle (an opaque pointer to memory)
char * nmem_strdupn(NMEM mem, const char *src, size_t n)
allocates string of certain size on NMEM handle
int nmem_get_status(char *dst, size_t l)
returns memory status for NMEM - as XML
nmem_int_t * nmem_intdup(NMEM nmem, nmem_int_t v)
allocates and sets integer for NMEM
NMEM nmem_create(void)
returns new NMEM handle
void * nmem_malloc(NMEM n, size_t size)
allocates memory block on NMEM handle
size_t nmem_total(NMEM n)
returns size in bytes of memory for NMEM handle
char * nmem_strdup_null(NMEM mem, const char *src)
allocates string on NMEM handle - allows NULL ptr buffer
void nmem_destroy(NMEM n)
destroys NMEM handle and memory associated with it
char * nmem_strdup(NMEM mem, const char *src)
allocates string on NMEM handle (similar strdup)
Header with fundamental macros.