limb 0.2.0

2024-01-09

siov_memcmp(3)
limb manual
siov_memcmp(3)

NAME

siov_memcmp - compare a byte array with an array of vectors

SYNOPSIS

#include <limb/siovec.h>
int siov_memcmp(const struct iovec *v, unsigned int n, const char *s, size_t len)

DESCRIPTION

The siov_memcmp() function compares the first len bytes of s and those scattered across given array v of n vectors (each interpreted as unsigned char).

RETURN VALUE

The siov_memcmp() function returns an integer less than, equal to, or greater than zero if the first len bytes of scattered data are found, respectively, to be less than, to match, or be greater than the first len bytes of s.

SEE ALSO

memcmp(3)

limb 0.1.0
2023-07-24
siov_memcmp(3)