Category : C Source Code
Archive   : CSRC2.ZIP
Filename : PUTW.C

 
Output of file : PUTW.C contained in archive : CSRC2.ZIP
/*
* p u t w . c
*/

/*)LIBRARY
*/

#ifdef DOCUMENTATION

title putw Output a 16 bit binary integer to a file
index Output a 16 bit binary integer to a file

synopsis
.s.f
putw(word, iop);
int word;
FILE *iop;

Description

putw() writes one 16 bit word to the indicated file.

Bugs

#endif

#include

int
putw(word, iop)
register int word;
register FILE *iop;
/*
* Write a word to a file
*/
{
putc(word, iop);
putc(word >> 8, iop);
}


  3 Responses to “Category : C Source Code
Archive   : CSRC2.ZIP
Filename : PUTW.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/