Download 032 Manual - Digi-Key

Transcript
Library Functions
PUTCHAR
Synopsis
#include <stdio.h>
int putchar (int c)
Description
The putchar() function is a putc() operation on stdout, 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.
234