librsync  2.3.4
Macros | Functions
util.h File Reference

Misc utility functions used by librsync. More...

Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define rs_alloc_struct(type)   ((type *) rs_alloc_struct0(sizeof(type), #type))
 Allocate and zero-fill an instance of TYPE. More...
 
#define UNUSED(x)   x
 

Functions

void * rs_alloc (size_t size, char const *name)
 
void * rs_realloc (void *ptr, size_t size, char const *name)
 
void * rs_alloc_struct0 (size_t size, char const *name)
 
void rs_bzero (void *buf, size_t size)
 
int rs_long_ln2 (rs_long_t v)
 
int rs_long_sqrt (rs_long_t v)
 

Detailed Description

Misc utility functions used by librsync.

Definition in file util.h.

Macro Definition Documentation

#define rs_alloc_struct (   type)    ((type *) rs_alloc_struct0(sizeof(type), #type))

Allocate and zero-fill an instance of TYPE.

Definition at line 41 of file util.h.