memoverlap(3pub) debian man page | unix.com

Man Page: memoverlap

Operating Environment: debian

Section: 3pub

MEMOVERLAP(3pub)					       C Programmer's Manual						  MEMOVERLAP(3pub)

NAME
memoverlap - check whether two memory blocks overlap
SYNOPSIS
#include <publib.h> int memoverlap(const void *t, size_t ts, const void *s, size_t ss);
DESCRIPTION
memoverlap checks whether the memory blocks t--(t+ts-1) and s--(s+ss-1) overlap. Neither pointer argument may be NULL, but the sizes may be 0. The memory blocks can be arbitrary, they do not have to be part of the same array. Therefore, this function hides the unportable pointer comparison that one would otherwise rely on.
RETURN VALUE
memoverlap returns 0 if the blocks do not overlap, and nonzero if they do.
SEE ALSO
publib(3)
AUTHOR
Lars Wirzenius (lars.wirzenius@helsinki.fi) Publib C Programmer's Manual MEMOVERLAP(3pub)
Related Man Pages
xfree(3pub) - debian
memshuffle(3pub) - debian
xrealloc(3pub) - debian
xfree(3pub) - mojave
xmalloc(3pub) - mojave
Similar Topics in the Unix Linux Community
Adding the individual columns of a matrix.
Installing Dash Shell on OS X Lion
awk or sed - Convert 2 lines to 1 line
How can I do this in VI editor?
How to copy a column of multiple files and paste into new excel file (next to column)?