Command Prompt for Windows




putchar, _putwchar, _puttchar

int putchar(const int c);
int _putwchar(const int c);
int _puttchar(const int c);

Display a character c.

Parameter Description
c Character value.

Returns

Returns the character c.

Comments

Function putchar() is streamable, that is, when stdout is redirected on the command line to a file, the character will be written to the file.

Tab characters are padded with space characters.

See Also

printf, putx, puts, putch, getchar

Example

void charmsg(char *msg)
{
    while (*msg) {            /* display message */
        putchar(*msg++);

    putchar('\n');
}