Utility functions that are missing in string.h
More...
Utility functions that are missing in string.h
Definition in file string_utils.h.
#include <errno.h>
#include <stdint.h>
#include <string.h>
#include <strings.h>
#include <sys/types.h>
#include "modules.h"
Go to the source code of this file.
Functions | |
static void | explicit_bzero (void *dest, size_t n_bytes) |
Like memset(dest, 0, n_bytes) , but secure. | |
ssize_t | strscpy (char *dest, const char *src, size_t count) |
Copy the string, or as much of it as fits, into the dest buffer. | |
const void * | memchk (const void *data, uint8_t c, size_t len) |
Check if the entire buffer is filled with the same byte. | |