File:  [Apple XNU] / GNUtools / libg++ / libio / stdio / putw.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:45:53 2018 UTC (8 years, 2 months ago) by root
Branches: MAIN, Apple
CVS tags: HEAD, GNUtools33
GNU tools for NeXTSTEP 3.3

#include "libioP.h"
#include "stdio.h"

#undef putw

int
putw(w, fp)
     int w;
     FILE *fp;
{
  _IO_size_t written;
  COERCE_FILE(fp);
  written = _IO_sputn(fp, (const char *)&w, sizeof(w));
  return written == sizeof(w) ? 0 : EOF;
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.