dd.c code condensed