From ee383ad5c7b5bbf60b4af447c5114e95a734688d Mon Sep 17 00:00:00 2001 From: Marco Paland Date: Sat, 12 May 2018 01:15:25 +0200 Subject: fix(printf): use C conform `NULL` instead of C++ `nullptr` Fixes #14 --- printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'printf.c') diff --git a/printf.c b/printf.c index 8fe7048..56f60d6 100644 --- a/printf.c +++ b/printf.c @@ -647,7 +647,7 @@ int printf(const char* format, ...) { va_list va; va_start(va, format); - const int ret = _vsnprintf(_out_char, nullptr, (size_t)-1, format, va); + const int ret = _vsnprintf(_out_char, NULL, (size_t)-1, format, va); va_end(va); return ret; } -- cgit v1.2.3