repo.or.cz
/
supercollider.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git]
/
external_libraries
/
TLSF-2.4.6
/
examples
/
test4.c
blob
105181507f3e8ca51e1ec8d8c4af6458cc89aa1d
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include
"tlsf.h"
4
5
int
main
(
void
){
6
int
*
ptr
[
100
];
7
int
i
;
8
9
for
(
i
=
0
;
i
<
100
;
i
++)
10
if
(!(
ptr
[
i
]=
tlsf_malloc
(
1024
))){
11
printf
(
"Error
\n
"
);
12
exit
(-
1
);
13
}
14
15
for
(
i
=
0
;
i
<
100
;
i
++)
16
tlsf_free
(
ptr
[
i
]);
17
18
printf
(
"Test OK
\n
"
);
19
20
exit
(
0
);
21
}
22
23
24