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

From: isabella parakiss <izaberina_AT_gmail.com>
Date: Sun, 5 Mar 2017 08:34:44 +0100

On 3/4/17, git_AT_suckless.org <git_AT_suckless.org> wrote:
> 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
>
>

printf("your shit is broken, moron");
Received on Sun Mar 05 2017 - 08:34:44 CET

This archive was generated by hypermail 2.3.0 : Sun Mar 05 2017 - 08:36:18 CET