#include "config.h"
#include <string.h>
#include <limits.h>
Include dependency graph for memcspn.c:
Functions | |
size_t | memcspn (const void *mem, size_t memlen, const void *reject, size_t rejectlen) |
Search memory for bytes not in a given set. |
size_t memcspn | ( | const void * | mem, | |
size_t | memlen, | |||
const void * | reject, | |||
size_t | rejectlen | |||
) |
Search memory for bytes not in a given set.
The memcspn() function calculates the length of the memory area mem which consists entirely of bytes not in reject.
mem | pointer to memory area | |
memlen | size of mem in bytes | |
reject | pointer to table containing bytes to reject | |
rejectlen | size of reject table |