Edit

kc3-lang/libxml2/testOOMlib.h

Branch :

  • Show log

    Commit

  • Author : Nick Wellnhofer
    Date : 2022-03-04 02:31:59
    Hash : ebb17970
    Message : Remove unneeded #includes

  • testOOMlib.h
  • #ifndef TEST_OOM_LIB_H
    #define TEST_OOM_LIB_H
    
    #include <stddef.h>
    
    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);
    
    /* returns true on success */
    typedef int (* TestMemoryFunction)  (void *data);
    
    /* returns true on success */
    int test_oom_handling (TestMemoryFunction  func,
                           void               *data);
    
    /* get number of blocks leaked */
    int test_get_malloc_blocks_outstanding (void);
    
    #endif