testOOMlib

testOOMlib —

Synopsis




void*       test_malloc                     (size_t bytes);
void*       test_realloc                    (void *memory,
                                             size_t bytes);
void        test_free                       (void *memory);
char*       test_strdup                     (const char *str);
int         (*TestMemoryFunction)           (void *data);
int         test_oom_handling               (TestMemoryFunction func,
                                             void *data);
int         test_get_malloc_blocks_outstanding
                                            (void);

Description

Details

test_malloc ()

void*       test_malloc                     (size_t bytes);

bytes:

test_realloc ()

void*       test_realloc                    (void *memory,
                                             size_t bytes);

memory:
bytes:

test_free ()

void        test_free                       (void *memory);

memory:

test_strdup ()

char*       test_strdup                     (const char *str);

str:
Returns :

TestMemoryFunction ()

int         (*TestMemoryFunction)           (void *data);

data:
Returns :

test_oom_handling ()

int         test_oom_handling               (TestMemoryFunction func,
                                             void *data);

func:
data:
Returns :

test_get_malloc_blocks_outstanding ()

int         test_get_malloc_blocks_outstanding
                                            (void);

Returns :