mkstemps.c (392B)
- // utils-std: Collection of commonly available Unix tools
- // SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- // SPDX-License-Identifier: MPL-2.0
- // Because that's what our utilities will use :)
- #define _DEFAULT_SOURCE
- #include <stdlib.h>
- int
- main(void)
- {
- char template[] = "mktemp_XXXXXX.c";
- size_t suffix = 2;
- return mkstemps(template, suffix);
- }