Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - putchar http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   putchar

   Usage
   #include <stdio.h>
   int putchar(int c);

   Description
   putchar  writes the character c to the standard output stream,  stdout
   (usually the screen).

   Example
   #include <stdio.h>
   main()
   {
   char *string = "This is an example of putchar()";
   int i, ch;
        for(i=0; (i<28) && ((ch = putchar(string[i]))!= EOF) ; i++);
   }

   Return Value
   The  character  just written is returned. An EOF is returned  when  an
   error occurs.


See Also: fputc getc getchar putc

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson