12345678910111213141516171819202122232425262728 |
- #include "_stdio.h"
- int putw(int w, FILE *stream)
- {
- #define PW &w
-
- #if 0
- #undef PW
- int PW[1];
- PW[0] = w;
- #endif
- #if EOF == -1
- return __fwrite_unlocked((void *) PW, sizeof(int), 1, stream) - 1;
- #else
- return (__fwrite_unlocked((void *) PW, sizeof(int), 1, stream) != 0)
- ? 0 : EOF;
- #endif
- }
|