Files
shadow/lib/string/strftime.h
Alejandro Colomar 3dc840a56a lib/string/strftime.h: STRFTIME(): Tighten macro definition
strftime(3) is not a variadic function; there's exactly one argument
after the format string.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2024-08-22 22:51:57 -05:00

20 lines
348 B
C

// SPDX-FileCopyrightText: 2024, Alejandro Colomar <alx@kernel.org>
// SPDX-License-Identifier: BSD-3-Clause
#ifndef SHADOW_INCLUDE_LIB_STRFTIME_H_
#define SHADOW_INCLUDE_LIB_STRFTIME_H_
#include <config.h>
#include <time.h>
#include "sizeof.h"
#define STRFTIME(dst, fmt, tm) strftime(dst, NITEMS(dst), fmt, tm)
#endif // include guard