c556dffe98
The calloc() function is useful in addition to malloc and friends, so add the obvious definition. Change-Id: I57a568e323344a97b35014b7b8bec16adc2fd720 Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51949 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
11 lines
216 B
C
11 lines
216 B
C
#ifndef STDLIB_H
|
|
#define STDLIB_H
|
|
|
|
#include <stddef.h>
|
|
|
|
void *memalign(size_t boundary, size_t size);
|
|
void *malloc(size_t size);
|
|
void *calloc(size_t nitems, size_t size);
|
|
void free(void *ptr);
|
|
|
|
#endif /* STDLIB_H */
|