/* * * cputs- writes the string pointed by @str to stdout and * appends a newline character. * */ int cputs(const char *str) { int cnt = 0; char c; while ((c = *str ++) != '\0') { cputch(c, &cnt); } cputch('\n', &cnt); return cnt; }
void newline() { cputch ( '\n' ); }