delcr removes a CR at the end of each line of input, if a CR is present. It does not remove a CR at the end of a partial final line.
Some unix2dos and dos2unix programs have trouble with long lines and nulls. addcr and delcr have no trouble with long lines and nulls.