Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>putchar() write a character to stdout (macro)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 putchar()               Write a Character to Stdout (Macro)

 #include   <stdio.h>

 int        putchar(c);
 int        c;                           Character to be written

    putchar() writes one character to the standard output stream
    'stdout'.

    Returns:    The character written, if successful; EOF on error.  EOF
                is also a legitimate value, however, so use ferror() to
                verify that an error has occurred.

      Notes:    putchar() is identical to putc(c,stdout).  putchar()
                performs the same function as fputchar(), but putchar()
                is a macro, while fputchar() is a function.

   -------------------------------- Example ---------------------------------

    The following statements print the letters of the alphabet to the
    screen.

           #include <stdio.h>

           int x;

           main()
           {
               for (x = 65; x < 91; x++)
                   putchar(x);
           }


See Also: fputc() fputchar() getc() getchar()

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