Misc utility functions used by librsync.
More...
Go to the source code of this file.
|
#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 |
|
|
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) |
|
Misc utility functions used by librsync.
Definition in file util.h.
#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.