lib/string/sprintf/, lib/, src/, tests/: Move all sprintf(3)-like APIs to a subdirectory
And have a separate file for each pair of APIs. Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
committed by
Serge Hallyn
parent
89e4be3957
commit
22272347b6
16
lib/string/sprintf/snprintf.c
Normal file
16
lib/string/sprintf/snprintf.c
Normal file
@@ -0,0 +1,16 @@
|
||||
// SPDX-FileCopyrightText: 2023-2024, Alejandro Colomar <alx@kernel.org>
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "string/sprintf/snprintf.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
|
||||
|
||||
extern inline int snprintf_(char *restrict s, size_t size,
|
||||
const char *restrict fmt, ...);
|
||||
extern inline int vsnprintf_(char *restrict s, size_t size,
|
||||
const char *restrict fmt, va_list ap);
|
||||
Reference in New Issue
Block a user