GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MEMOVERLAP (3)

NAME

memoverlap - check whether two memory blocks overlap

CONTENTS

Synopsis
Description
Author

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)
Search for    or go to Top of page |  Section 3 |  Main Index


Publib MEMOVERLAP (3) C Programmer's Manual

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.