From 39cbf48b6388469ec0ee0d30db55ac8d5623c8d5 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Tue, 28 Feb 2023 20:00:53 -0500 Subject: [PATCH] stdio: added `printf_error` --- include/stdio.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/stdio.h b/include/stdio.h index c017138..5ac8aeb 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -1,6 +1,8 @@ #ifndef _STDIO_H_ #define _STDIO_H_ +#define printf_error(_fmt, ...) printf("[ERROR]: " _fmt, __VA_ARGS__); + int printf(const char *restrict fmt, ...); #endif /* _SDTIO_H_ */