Test project on the top. Three clean projects to do a codec.
[theora-davinci.git] / ccs-project / ogg-DM6446 / os_types.c
blob2e91490ecb7277657a2a346cedd11f496fcc895b
1 #include "os_types.h"
2 #include <stdio.h>
3 #include <stdlib.h>
5 void* _ogg_calloc(size_t _num, size_t _size) {
6 void* res;
7 res = calloc(_num, _size);
8 if (res == 0) printf("PROBLEM IN CALLOC!\n");
10 return res;
12 void* _ogg_malloc(size_t _size) {
13 void* res;
14 res = malloc(_size);
15 if (res == 0) printf("PROBLEM IN MALLOC!\n");
17 return res;
20 void* _ogg_realloc(void *_ptr, size_t _size) {
21 void* res;
22 res = realloc(_ptr, _size);
23 if (res == 0) printf("PROBLEM IN REALLOC!\n");
25 return res;