diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 1999-10-04 08:17:54 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 1999-10-04 08:17:54 +0000 |
commit | 04626017cb749d6f136095d08849d1d014b5fb40 (patch) | |
tree | 50ded16eb354bed37a52d5661568400841645361 /contrib/libio/stdio/putw.c | |
parent | 43d36c40e70660b96e7d58f04f39090aa8ce602e (diff) |
Virgin import of EGCS 1.1.2's libio -- the C++ iostream facility.
Notes
Notes:
svn path=/vendor/gcc/dist/; revision=51922
Diffstat (limited to 'contrib/libio/stdio/putw.c')
-rw-r--r-- | contrib/libio/stdio/putw.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/libio/stdio/putw.c b/contrib/libio/stdio/putw.c new file mode 100644 index 000000000000..fd73261359cf --- /dev/null +++ b/contrib/libio/stdio/putw.c @@ -0,0 +1,15 @@ +#include "libioP.h" +#include "stdio.h" + +#undef putw + +int +putw(w, fp) + int w; + FILE *fp; +{ + _IO_size_t written; + CHECK_FILE(fp, EOF); + written = _IO_sputn(fp, (const char *)&w, sizeof(w)); + return written == sizeof(w) ? 0 : EOF; +} |