lib: Add obvious definition for calloc

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>
This commit is contained in:
Tim Wawrzynczak
2021-03-30 11:49:14 -06:00
committed by Patrick Georgi
parent 8aedb34501
commit c556dffe98
3 changed files with 34 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
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 */