1234567891011121314151617181920212223242526272829 |
- #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
- }
|