Created
March 8, 2014 02:49
-
-
Save dx7/9424562 to your computer and use it in GitHub Desktop.
Ternário do stdio.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This has been tuned to generate reasonable code on the vax using pcc. | |
*/ | |
#define __sputc(c, p) \ | |
(--(p)->_w < 0 ? \ | |
(p)->_w >= (p)->_lbfsize ? \ | |
(*(p)->_p = (c)), *(p)->_p != '\n' ? \ | |
(int)*(p)->_p++ : \ | |
__swbuf('\n', p) : \ | |
__swbuf((int)(c), p) : \ | |
(*(p)->_p = (c), (int)*(p)->_p++)) | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment