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>fputchar() write a character to stdout</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 fputchar()              Write a Character to Stdout

 #include   <stdio.h>

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

    fputchar() writes a single character to 'stdout'.

    Returns:    On success, the character written; EOF is returned to
                indicate an error.  Because EOF is also a legitimate
                integer value, ferror() should be used to verify an
                actual error condition.

      Notes:    fputchar(c) is equivalent to fputc(c,stdout).

                fputchar() is identical to putchar(), but the latter is a
                macro, while fputchar() is a function.

 Portability:   Applies to MS DOS only.

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

    The following statements print the alphabet on the screen.

           #include <stdio.h>

           int x;

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



See Also: fputc() putchar() putc() fgetc() fgetchar()

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