VERSION
1.0
INTRODUCTION
unixxdos is a conservative alternative to dos2unix and unix2dos.
It's a symmetrical operation, so that:
1) unixxdos replaces both unix2dos and dos2unix.
2) The operation is bijective. No data is lost when a binary file is passed through unixxdos. The operation can be reversed by a second pass through unixxdos.

BEHAVIOR
Any LF not preceded by a CR becomes a CRLF.
A CRLF sequence becomes a LF unless it's preceded by another CR.

Base rules:
CR LF		-> LF
LF		-> CR LF
CR CR LF	-> CR CR LF

Significant samples:
LF LF		-> CR LF CR LF
LF CR		-> CR LF CR
LF CR LF	-> CR LF LF

SYNOPSIS
unixxdos < dos.txt > unix.txt
unixxods < unix.txt > dos.txt

INVOKING
unixxods reads data from stdin and outputs transformed data to stdout. It recognizes no command line argument.

COMPILING
$ gcc -O2 -Wall -std=c89 --pedantic-errors unixxdos.c -ounixxdos
A size-optimized dietlibc based version can be compiled with the ./mk shell script.

INSTALLING
unixxdos is a simple executable without specific dependencies.
