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>putc</b> 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);

   ANSI

Description

   putc writes the character c to the stream fp.

Example 

   #include <stdio.h>
   #include <stdlib.h>

   int 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 EXIT_SUCCESS;
   }

Return Value

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

See Also

   fputc, getc, getchar, putchar



See Also: fputc getc getchar putchar

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