reallocarray.c (371B)
- // utils-std: Collection of commonly available Unix tools
- // SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- // SPDX-License-Identifier: MPL-2.0
- #define _POSIX_C_SOURCE 202405L
- #include "../lib/reallocarray.h"
- #include <stdlib.h> // reallocarray
- void
- test(void)
- {
- char *arr = NULL;
- (void)reallocarray(&arr, 69, sizeof(*arr));
- }