librsync
2.3.4
|
Misc utility functions used by librsync. More...
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) |
Misc utility functions used by librsync.
Definition in file util.h.
#define rs_alloc_struct | ( | type | ) | ((type *) rs_alloc_struct0(sizeof(type), #type)) |
void * rs_realloc | ( | void * | ptr, |
size_t | size, | ||
char const * | name | ||
) |