long inpos = 0L, outpos = 0L; /* file position trackers */
int writebuf(void);
void main(int argc, char *argv[])
{
signed char ch[2];
short plast = 0, p, err;
if( argc != 3 && argc != 2) {
puts("AddCR by Unicorn Research Corporation\nConvert LF end-of-line codes to CR+LF.\n\nUsage is: AddCR infile [outfile]\n\nIf outfile is omitted, infile will be replaced.\nExisting CR+LF codes are not affected.\n");