RTRlib
Loading...
Searching...
No Matches
alloc_utils_private.h File Reference
#include "alloc_utils.h"
#include <stdlib.h>

Go to the source code of this file.

Functions

void * lrtr_malloc (size_t size)
 
void * lrtr_calloc (size_t nmemb, size_t size)
 
void lrtr_free (void *ptr)
 
void * lrtr_realloc (void *ptr, size_t size)
 
char * lrtr_strdup (const char *string)
 Duplicates a string.
 

Function Documentation

◆ lrtr_calloc()

void * lrtr_calloc ( size_t  nmemb,
size_t  size 
)

◆ lrtr_free()

void lrtr_free ( void *  ptr)

◆ lrtr_malloc()

void * lrtr_malloc ( size_t  size)

◆ lrtr_realloc()

void * lrtr_realloc ( void *  ptr,
size_t  size 
)

◆ lrtr_strdup()

char * lrtr_strdup ( const char *  string)

Duplicates a string.

Precondition
string != NULL
Parameters
[in]string
Returns
Duplicated string
NULL on error