From c556dffe985067cc40b817e963dae5cd1c34cc74 Mon Sep 17 00:00:00 2001 From: Tim Wawrzynczak Date: Tue, 30 Mar 2021 11:49:14 -0600 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/51949 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/include/stdlib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/stdlib.h b/src/include/stdlib.h index f6369bf0f4..8636ea45c9 100644 --- a/src/include/stdlib.h +++ b/src/include/stdlib.h @@ -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 */ -- cgit v1.2.3