/* putw.c (emx+gcc) -- Copyright (c) 1992-1993 by Kai Uwe Rommel */

#include <stdio.h>

int putw (int x, FILE *stream)
{
  return (fwrite (&x, sizeof (x), 1, stream) == 1 ? x : EOF);
}
