projects
/
platform
/
upstream
/
rpm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
got rid of includes of malloc.h (use stdlib.h instead)
[platform/upstream/rpm.git]
/
misc
/
myrealloc.c
1
#include <stdio.h>
2
#include <stdlib.h>
3
#define size_t unsigned
4
5
void *myrealloc(void *ptr, size_t size);
6
7
void *myrealloc(void *ptr, size_t size) {
8
if (ptr == NULL)
9
return malloc(size);
10
else
11
return realloc(ptr, size);
12
}