|
rlib
Convenience library for useful things
|
Inline byte-buffer primitives (see Inline byte-buffer primitives). More...
#include <string.h>Go to the source code of this file.
Macros | |
| #define | r_memclear(ptr, size) r_memset (ptr, 0, size) |
Convenience wrapper: r_memset (ptr, 0, size). | |
Functions | |
| static int | r_memcmp (rconstpointer a, rconstpointer b, rsize size) |
Lexicographically compare size bytes of a and b. | |
| static rpointer | r_memset (rpointer a, int v, rsize size) |
Fill size bytes at a with byte value v. | |
| static rpointer | r_memcpy (void *R_ATTR_RESTRICT dst, const void *R_ATTR_RESTRICT src, rsize size) |
Copy size bytes from src to dst. | |
| static rpointer | r_memmove (rpointer dst, rconstpointer src, rsize size) |
Copy size bytes from src to dst, allowing overlap. | |
Inline byte-buffer primitives (see Inline byte-buffer primitives).