/*1* Copyright (c) 2019 CTCaer2*3* This program is free software; you can redistribute it and/or modify it4* under the terms and conditions of the GNU General Public License,5* version 2, as published by the Free Software Foundation.6*7* This program is distributed in the hope it will be useful, but WITHOUT8* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or9* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for10* more details.11*12* You should have received a copy of the GNU General Public License13* along with this program. If not, see <http://www.gnu.org/licenses/>.14*/1516#ifndef _SPRINTF_H_17#define _SPRINTF_H_1819#include <stdarg.h>2021#include <utils/types.h>2223/*24* Padding:25* Numbers:26* %3d: Fill: ' ', Count: 3.27* % 3d: Fill: ' ', Count: 3.28* %23d: Fill: '2', Count: 3.29* % 23d: Fill: ' ', Count: 23.30* %223d: Fill: '2', Count: 23.31*32* Strings, Fill: ' ':33* %3s: Count: 5, Left.34* %23s: Count: 5, Left.35* %223s: Count: 25, Left.36* %.3s: Count: 5, Right.37* %.23s: Count: 25, Right.38* %.223s: Count: 225, Right.39*/4041void s_printf(char *out_buf, const char *fmt, ...) __attribute__((format(printf, 2, 3)));42void s_vprintf(char *out_buf, const char *fmt, va_list ap);4344#endif454647