diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-01-15 00:50:28 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-01-15 00:50:28 +0100 |
commit | 2b2ab290faed9a1dde21663bbd1e3696b65f3065 (patch) | |
tree | 72245e5d54d40d58d98646f55f07f1e8ba6f5a0b /tests/memory.c | |
parent | 0896df454eb5e9c207131c5c41a5afe7ba6292f8 (diff) | |
download | gmp-2b2ab290faed9a1dde21663bbd1e3696b65f3065.tar.gz |
* tests/memory.c, tests/tests.h (tests_memory_valid): New function.
Diffstat (limited to 'tests/memory.c')
-rw-r--r-- | tests/memory.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/memory.c b/tests/memory.c index 8e8f40314..a67e66669 100644 --- a/tests/memory.c +++ b/tests/memory.c @@ -58,6 +58,12 @@ tests_memory_find (void *ptr) return NULL; } +int +tests_memory_valid (void *ptr) +{ + return (tests_memory_find (ptr) != NULL); +} + void * tests_allocate (size_t size) { |