[hackers] [scc] [libc] Add macro implementation of printf || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sat, 4 Mar 2017 12:57:41 +0100 (CET)

commit 96412d000b9cb374033665f6ccfcd06f9c9e4d0e
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Mar 4 12:57:07 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Mar 4 12:57:07 2017 +0100

    [libc] Add macro implementation of printf

diff --git a/libc/include/stdio.h b/libc/include/stdio.h
index a2a2a99..5aed508 100644
--- a/libc/include/stdio.h
+++ b/libc/include/stdio.h
_AT_@ -95,4 +95,8 @@ extern int feof(FILE *fp);
 extern int ferror(FILE *fp);
 extern void perror(const char *s);
 
+#ifdef __USE_MACROS
+#define printf(fmt, ...) fprintf(stdin, fmt, __VA_ARGS__)
+#endif
+
 #endif
Received on Sat Mar 04 2017 - 12:57:41 CET

This archive was generated by hypermail 2.3.0 : Sat Mar 04 2017 - 13:00:19 CET