-/*
- * Copyright (C) 1995-2007, Index Data ApS
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2008 Index Data
* See the file LICENSE for details.
- *
- * $Id: tstnmem.c,v 1.7 2007-01-03 08:42:16 adam Exp $
*/
#if HAVE_CONFIG_H
int j;
char *cp;
- nmem_init();
n = nmem_create();
YAZ_CHECK(n);
for (j = 1; j<500; j++)
{
- cp = nmem_malloc(n, j);
+ cp = (char *) nmem_malloc(n, j);
YAZ_CHECK(cp);
if (sizeof(long) >= j)
*(long*) cp = 123L;
for (j = 2000; j<20000; j+= 2000)
{
- cp = nmem_malloc(n, j);
+ cp = (char *) nmem_malloc(n, j);
YAZ_CHECK(cp);
}
nmem_destroy(n);
- nmem_exit();
}
int main (int argc, char **argv)