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

 #include   <conio.h>                    Required for declarations only

 int        putch(c);
 int        c;                           Character to be output

    putch() writes a character, 'c', to the console.

    Returns:    'c' if successful; EOF is returned on error.

 Compatibility: In MSC version 4,0, putch() returned an error code.

 Portability:   Applies to MS DOS only.

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

    The following statement writes a capital 'A' to the screen.

           #include <conio.h>

           int ch = 'A';

           main()
           {
                putch(ch);
           }


See Also: putc() putchar() cprintf() getch() getche()

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