Logo Search packages:      
Sourcecode: sofia-sip version File versions

SU_DLL int su_home_check_alloc ( su_home_t const *  home,
void const *  data 

Check if pointer has been allocated through home.

home pointer to a memory home
data pointer to a memory area possibly allocated though home

Definition at line 846 of file su_alloc.c.

References su_home_check_alloc().

Referenced by su_home_check_alloc().

  int retval = 0;

  if (home && data) {
    su_block_t const *sub = MEMLOCK(home);
    su_alloc_t *allocation = su_block_find(sub, data);

    retval = allocation != NULL;


  return retval;

Generated by  Doxygen 1.6.0   Back to index