ATLAS Offline Software
compare-pointer.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (c) 2005-2008, Simon Howard
4 
5 Permission to use, copy, modify, and/or distribute this software
6 for any purpose with or without fee is hereby granted, provided
7 that the above copyright notice and this permission notice appear
8 in all copies.
9 
10 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11 WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12 WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13 AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
14 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
16 NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
17 CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 
19  */
20 
31 #ifndef ALGORITHM_COMPARE_POINTER_H
32 #define ALGORITHM_COMPARE_POINTER_H
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
47 int pointer_equal(void *location1, void *location2);
48 
60 int pointer_compare(void *location1, void *location2);
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif /* #ifndef ALGORITHM_COMPARE_POINTER_H */
67 
pointer_equal
int pointer_equal(void *location1, void *location2)
Compare two pointers to determine if they are equal.
pointer_compare
int pointer_compare(void *location1, void *location2)
Compare two pointers.