changed putchar and putstr to return void