home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
filutl
/
tenex.arc
/
TENEX.DOC
< prev
next >
Wrap
Text File
|
1988-09-07
|
2KB
|
46 lines
I had just spent a few hours uploading MSDOS stuff from SIMTEL20.
Back on my PC, I realized that while I had remembered to transfer everything
in binary mode (in FTP), that I had neglected to account for (is it called ?)
TENEX mode (since SIMTEL20 is a 36-bit machine). I decided it would be faster
to write a C program to convert the 36-bit data into good ol' 8-bit bytes,
than re-upload every. So here is the program. I used MSC 5.0. If anyone needs
a binary copy for MSDOS, I'll mail them one. I hope this wheel hasn't been
reinvented too many times...
Cheers,
Dan Ts'o
tso@rockefeller.edu
dan@rna.rockefeller.edu
...cmcl2!rna!dan
212-570-7671
Dept Neurbiology
The Rockefeller University
1230 York Ave.
NY, NY 10021
/*
* TENEX convert - convert tenex 36-bit files into standard 8-bit
* byte stream by discarding every 9th nibble (hopefully its zero).
* Also convert TENEX 7-bit ASCII to standard 8-bit byte ASCII by
* discarding every 36th bit.
*
* Written by Daniel Ts'o, dan@rna.rockefeller.edu, 9/7/88
*
* Usage: tenex [-[t|b]] [-[v|q]] [files...]
*
* -t Convert 5x7bit ASCII (35+1bit packing) into 8-bit byte stream
* -b Convert 4*8bit binary (32+4bit packing) into 8-bit byte stream
(Default is -b)
* -v Print progress on stderr
* -q Quietly delete nonzero bits
*
* If file arguments are given, they are converted "in place", using
* temporary file "tenex.tmp".
* If file arguments are missing, convert stdin to stdout (filter mode).
*
* Compile with MSC 5.0 on MSDOS:
*
* cl tenex.c \lib\setargv.obj /link /NOE
*
* to permit wildcard expansion.
*/