mirror of
https://github.com/CTCaer/hekate
synced 2024-09-06 16:18:59 +00:00
![CTCaer](/assets/img/avatar_default.png)
This allows the custom sprintf to be recognized as printf by gcc and effectively doing format checking. NOTE: 64bit formatting is not supported for now, even if gcc asks to be set.
27 lines
864 B
C
27 lines
864 B
C
/*
|
|
* Copyright (c) 2019 CTCaer
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef _SPRINTF_H_
|
|
#define _SPRINTF_H_
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <utils/types.h>
|
|
|
|
void s_printf(char *out_buf, const char *fmt, ...) __attribute__((format(printf, 2, 3)));
|
|
void s_vprintf(char *out_buf, const char *fmt, va_list ap);
|
|
|
|
#endif |