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++ 3.0r4 - <b>putchar</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
putchar

Usage

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

   ANSI

Description

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

Example 

   #include <stdio.h>

   #include <stdlib.h>

   int main()
   {
       char *string = "This is an example of putchar()";
       int i, ch;
       for(i=0; (i<32) && ((ch = putchar(string[i]))
               != EOF) ; i++);
       return EXIT_SUCCESS;
   }

Return Value

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

See Also

   fputc, getc, getchar, putc




See Also: fputc getc getchar putc

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