#include "config.h"
#include <string.h>
#include <limits.h>
Include dependency graph for memspn.c:

Functions | |
| size_t | memspn (const void *mem, size_t memlen, const void *accept, size_t acceptlen) |
| Scan memory for a set of bytes. | |
| size_t memspn | ( | const void * | mem, | |
| size_t | memlen, | |||
| const void * | accept, | |||
| size_t | acceptlen | |||
| ) |
Scan memory for a set of bytes.
The memspn() function calculates the length of the memory area mem which consists entirely of bytes in accept.
| mem | pointer to memory area | |
| memlen | size of mem in bytes | |
| accept | pointer to table containing bytes to accept | |
| acceptlen | size of accept table |