コード例 #1
0
ファイル: stdio.c プロジェクト: spinlock/ucore
/* *
 * 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;
}
コード例 #2
0
ファイル: simio.cpp プロジェクト: AbuMussabRaja/yarp
void newline()
{
	cputch ( '\n' );
}