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

   Usage
   #include <stdio.h>
   int putc(int c,FILE *fp);

   Description
   putc writes the character c to the stream fp.

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

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


See Also: fputc getc getchar putchar

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