Attempted to re-implement the BlockView . . .
[aesalon.git] / tests / malloc_test.c
bloba3c08d9608d8e40743481aae0006775348833ddb
1 #include <stdio.h>
2 #include <stdlib.h>
4 int main(int argc, char *argv[]) {
5 char *memory = 0;
6 printf("**** malloc_test: about to allocate one byte of memory . . .\n");
7 memory = malloc(1);
8 printf("**** malloc_test: memory allocated (address is %p), freeing . . .\n", memory);
9 free(memory);
10 printf("**** malloc_test: memory freed, exiting . . .\n");
11 memory = 0;
12 return 0;