supernova: allocators - fix construct method
[supercollider.git] / external_libraries / TLSF-2.4.6 / examples / test4.c
blob105181507f3e8ca51e1ec8d8c4af6458cc89aa1d
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include "tlsf.h"
5 int main(void){
6 int *ptr[100];
7 int i;
9 for (i=0; i< 100; i++)
10 if (!(ptr[i]=tlsf_malloc(1024))){
11 printf("Error\n");
12 exit(-1);
15 for (i=0; i< 100; i++)
16 tlsf_free(ptr[i]);
18 printf("Test OK\n");
20 exit(0);