diff options
author | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2021-03-30 11:49:14 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-04-06 06:50:38 +0000 |
commit | c556dffe985067cc40b817e963dae5cd1c34cc74 (patch) | |
tree | 3215c4fee56bdf4870864e72471d77f508fae32a /src/include | |
parent | 8aedb34501450920a663342429e409562431e1c2 (diff) |
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>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/stdlib.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |