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