diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-06-20 00:04:58 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-06-20 00:04:58 +0200 |
commit | 4b4d68487c7fcc65f589be88390ce658d9d43a13 (patch) | |
tree | a31eb7a946c18d8792929b13c96a444ea3f8efa5 | |
parent | ef1bcc7338e92e44824d1361465d1bc6ec3bd9c6 (diff) | |
download | plan9front-4b4d68487c7fcc65f589be88390ce658d9d43a13.tar.xz |
stdio: fix putc(), plan9 version
-rw-r--r-- | sys/include/stdio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/include/stdio.h b/sys/include/stdio.h index 834bfb4ab..d348f179e 100644 --- a/sys/include/stdio.h +++ b/sys/include/stdio.h @@ -92,7 +92,7 @@ int getchar(void); #define getchar() getc(stdin) char *gets(char *); int putc(int, FILE *); -#define putc(c, f) ((f)->wp>=(f)->rp?_IO_putc(c, f):(*(f)->wp++=c)&_IO_CHMASK) +#define putc(c, f) ((f)->wp>=(f)->rp?_IO_putc(c, f):(*(f)->wp++=(c)&_IO_CHMASK)) int _IO_putc(int, FILE *); int putchar(int); #define putchar(c) putc(c, stdout) |