src/util.h
/**
 * extend an array by reallocation and zero's the new section
 * buf old pointer
 * len current size
 * nmbemb number of elements to add
 * size size of each element
 * block block size used to allocate the elements
 */
extend an array by reallocation and zero's the new section
buf old pointer
len current size
nmbemb number of elements to add
size size of each element
block block size used to allocate the elements
extend an array by reallocation and zero ' s the new section buf old pointer len current size nmbemb number of elements to add size size of each element block block size used to allocate the elements
static inline void *solv_zextend(void *buf, size_t len, size_t nmemb, size_t size, size_t block)
{
  buf = solv_extend(buf, len, nmemb, size, block);
  memset((char *)buf + len * size, 0, nmemb * size);
  return buf;
}
static inline void * solv_zextend ( void * buf , size_t len , size_t nmemb , size_t size , size_t block ) { buf = solv_extend ( buf , len , nmemb , size , block ) ; memset ( ( char * ) buf + len * size , 0 , nmemb * size ) ; return buf ; }
extend an array by reallocation and zero's the new section
 buf old pointer
 len current size
 nmbemb number of elements to add
 size size of each element
 block block size used to allocate the elements
extend an array by reallocation and zero ' s the new section buf old pointer len current size nmbemb number of elements to add size size of each element block block size used to allocate the elements