2 * Copyright (C) 1995-2007, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: tstnmem.c,v 1.7 2007-01-03 08:42:16 adam Exp $
30 for (j = 1; j<500; j++)
32 cp = nmem_malloc(n, j);
34 if (sizeof(long) >= j)
37 if (sizeof(long long) >= j)
38 *(long long*) cp = 123L;
40 if (sizeof(double) >= j)
44 for (j = 2000; j<20000; j+= 2000)
46 cp = nmem_malloc(n, j);
53 int main (int argc, char **argv)
55 YAZ_CHECK_INIT(argc, argv);
62 * indent-tabs-mode: nil
64 * vim: shiftwidth=4 tabstop=8 expandtab