|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T o
Length: 621 (0x26d)
Types: TextFile
Names: »out.c«
└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12
└─⟦c319c2751⟧ »unix3.0/TeX3.0.tar.Z«
└─⟦036c765ac⟧
└─⟦this⟧ »TeX3.0/TeXcontrib/salkind/src/out.c«
└─⟦060c9c824⟧ Bits:30007080 DKUUG TeX 2/12/89
└─⟦this⟧ »./tex82/TeXcontrib/salkind/src/out.c«
└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12
└─⟦63303ae94⟧ »unix3.14/TeX3.14.tar.Z«
└─⟦c58930e5c⟧
└─⟦this⟧ »TeX3.14/TeXcontrib/salkind/src/out.c«
#include <stdio.h>
#include "rst.h"
/*
* write the value n, which is size bytes long, to the
* FILE descriptor *fp. Most signifigant byte first.
*/
out1byt(c, fp)
ONEB c;
FILE *fp;
{
putc(c&0377, fp);
}
out2byt(c, fp)
TWOB c;
FILE *fp;
{
putc((c>>8) & 0377, fp);
putc(c&0377, fp);
}
out3byt(c, fp)
THREEB c;
FILE *fp;
{
putc((c>>16) & 0377, fp);
putc((c>>8) & 0377, fp);
putc(c&0377, fp);
}
out4byt(c, fp)
FOURB c;
FILE *fp;
{
putc((c>>24) & 0377, fp);
putc((c>>16) & 0377, fp);
putc((c>>8) & 0377, fp);
putc(c&0377, fp);
}
outstr(s, fp)
char *s;
FILE *fp;
{
while (*s)
putc(*s++, fp);
}