repo.or.cz
/
aesalon.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
It has been a while since I last worked on Aesalon proper.
[aesalon.git]
/
tests
/
malloc_test.c
blob
ad5a6908dd5f2e4c8f2fba414eb08b6f65496c04
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
int
main
(
int
argc
,
char
*
argv
[]) {
5
int
*
data
=
malloc
(
sizeof
(
int
));
6
printf
(
"**** %s: Allocated 4-byte chunk at %p.
\n
"
,
argv
[
0
],
data
);
7
free
(
data
);
8
return
0
;
9
}