renamed getc and getw (conflicts with stdio.h), renamed sqr(dcomp)