Loading...
Searching...
No Matches

Utility functions that are missing in string.h More...

Detailed Description

Utility functions that are missing in string.h

Author
Marian Buschsieweke maria.nosp@m.n.bu.nosp@m.schsi.nosp@m.ewek.nosp@m.e@ovg.nosp@m.u.de

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"
+ Include dependency graph for string_utils.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.