Query: memoverlap
OS: debian
Section: 3pub
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MEMOVERLAP(3pub) C Programmer's Manual MEMOVERLAP(3pub)NAMEmemoverlap - check whether two memory blocks overlapSYNOPSIS#include <publib.h> int memoverlap(const void *t, size_t ts, const void *s, size_t ss);DESCRIPTIONmemoverlap 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 VALUEmemoverlap returns 0 if the blocks do not overlap, and nonzero if they do.SEE ALSOpublib(3)AUTHORLars Wirzenius (lars.wirzenius@helsinki.fi) Publib C Programmer's Manual MEMOVERLAP(3pub)
Related Man Pages |
---|
memshuffle(3pub) - debian |
xmalloc(3pub) - sunos |
xfree(3pub) - opensolaris |
xmalloc(3pub) - mojave |
xfree(3pub) - linux |
Similar Topics in the Unix Linux Community |
---|
Adding the individual columns of a matrix. |
awk or sed - Convert 2 lines to 1 line |
Introduction |
Weird 'find' results |
A (ksh) Library For and From UNIX.com |