From e2dc7cf9c966d4c94b7556c1c2ada8d170715654 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 25 Nov 2018 14:17:49 +0100 Subject: Fix consistence in memelem functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- man3/libsimple_rawmemelem_inv.3 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'man3/libsimple_rawmemelem_inv.3') diff --git a/man3/libsimple_rawmemelem_inv.3 b/man3/libsimple_rawmemelem_inv.3 index 20ed595..28e5bef 100644 --- a/man3/libsimple_rawmemelem_inv.3 +++ b/man3/libsimple_rawmemelem_inv.3 @@ -1,11 +1,11 @@ -.TH LIBSIMPLE_RAWMEMELEM_INV 3 2018-11-24 libsimple +.TH LIBSIMPLE_RAWMEMELEM_INV 3 2018-11-25 libsimple .SH NAME libsimple_rawmemelem_inv \- find different aligned byte string in memory .SH SYNOPSIS .nf #include -void *libsimple_rawmemelem_inv(const void *\fIhaystack\fP, const void *\fIneedle\fP, size_t \fInneedle\fP); +void *libsimple_rawmemelem_inv(const void *\fIhaystack\fP, const void *\fIneedle\fP, size_t \fIwidth\fP); #ifndef rawmemelem_inv # define rawmemelem_inv libsimple_rawmemelem_inv @@ -23,9 +23,9 @@ for the first occurence of a byte string different from .I needle with the size -.IR nneedle , +.IR width , and with an offset equivalent to zero modulo -.IR nneedle . +.IR width . .PP The .BR libsimple_rawmemchr () @@ -40,12 +40,12 @@ The function returns the pointer .I s with a minimal offset such that -.IR memcmp(r,needle,nneedle) , +.IR memcmp(r,needle,width) , where .I r is the returned pointer, and such that the offset is equivalent to zero modulo -.IR nneedle . +.IR width . If no such offset exists, the behaviour is undefined. .SH ERRORS The -- cgit v1.2.3-70-g09d2