shadow/lib/string/strftime.h
Alejandro Colomar c1c685b5ff */: s/STRFTIME/strftime_a/
This name better reflects that it handles arrays, and doesn't shout.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-11-27 20:50:48 -06:00

21 lines
392 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"
// strftime_a - string format time array
#define strftime_a(dst, fmt, tm) strftime(dst, countof(dst), fmt, tm)
#endif // include guard