Microchip Technology XC8 Standard Compiler (Workstation) SW006021-1 SW006021-1 ユーザーズマニュアル

製品コード
SW006021-1
ページ / 518
Library Functions
 2012 Microchip Technology Inc.
DS52053B-page 353
Example
#include <conio.h>
char * x = "This is a string";
void
main (void)
{
    char * cp;
    cp = x;
    while(*x)
        putch(*x++);
    putch(’\n’);
}
See Also
printf()
, putchar()
PUTCHAR 
Synopsis
#include <stdio.h>
 
int putchar (int c)
Description
The 
putchar()
 function calls putch() to print one character to stdout, and is defined 
in 
stdio.h
.
Example
#include <stdio.h>
char * x = "This is a string";
void
main (void)
{
    char * cp;
    cp = x;
    while(*x)
        putchar(*x++);
    putchar(’\n’);
}
See Also
putc()
, getc(), freopen(), fclose()
Return Value
The character passed as argument, or EOF if an error occurred.