diff options
Diffstat (limited to '')
-rw-r--r-- | man3/libsimple_memrelem.3 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/man3/libsimple_memrelem.3 b/man3/libsimple_memrelem.3 index f6681e9..26bcfb8 100644 --- a/man3/libsimple_memrelem.3 +++ b/man3/libsimple_memrelem.3 @@ -1,11 +1,11 @@ -.TH LIBSIMPLE_MEMRELEM 3 2018-10-20 libsimple +.TH LIBSIMPLE_MEMRELEM 3 2018-11-25 libsimple .SH NAME libsimple_memrelem \- find aligned byte string in memory .SH SYNOPSIS .nf #include <libsimple.h> -void *libsimple_memrelem(const void *\fIhaystack\fP, size_t \fInhaystack\fP, const void *\fIneedle\fP, size_t \fInneedle\fP); +void *libsimple_memrelem(const void *\fIhaystack\fP, const void *\fIneedle\fP, size_t \fIwidth\fP, size_t \fIn\fP); #ifndef memrelem # define memrelem libsimple_memrelem @@ -20,13 +20,13 @@ The function scans the memory segment .IR haystack , with the size -.IR nhaystack*nneedle , +.IR n*width , for the last occurence of the byte string .I needle with the size -.IR nneedle , +.IR width , and with an offset equivalent to zero modulo -.IR nneedle . +.IR width . .PP The comparison is case-sensitive. .SH RETURN VALUE @@ -35,12 +35,12 @@ The function returns the pointer .I s with a maximal 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, .B NULL is returned. |