diff options
Diffstat (limited to 'src/c/str/cpy/stp/stpe/stpeprintf.c')
-rw-r--r-- | src/c/str/cpy/stp/stpe/stpeprintf.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/c/str/cpy/stp/stpe/stpeprintf.c b/src/c/str/cpy/stp/stpe/stpeprintf.c new file mode 100644 index 0000000..32d18f8 --- /dev/null +++ b/src/c/str/cpy/stp/stpe/stpeprintf.c @@ -0,0 +1,17 @@ +// Copyright 2022 Alejandro Colomar <alx@kernel.org> +// SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception + + +#include <c/str/cpy/stp/stpe/stpeprintf.h> + +#include <stdarg.h> + +#include <c/str/cpy/stp/_compiler.h> + + +#pragma clang assume_nonnull begin +extern inline char *c_nullable c_stpeprintf(char *c_nullable dst, char end[0], + const char *restrict fmt, ...); +extern inline char *c_nullable c_vstpeprintf(char *c_nullable dst, char end[0], + const char *restrict fmt, va_list ap); +#pragma clang assume_nonnull end |