removed dangling putchar for CRAN