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

Usage

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

   ANSI

Description

   fputc writes the character c to the stream fp.

Example 

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

   FILE *fp;

   int main()

   {
       char *line = "This is an example ";
       fp = stdout;
       while(*line)
           fputc(*line++, fp);
       return EXIT_SUCCESS;
   }

Return Value

   fputc returns the last character output to the stream. An EOF is returned
   on error.

See Also

   fgetc, getc, getchar



See Also: fgetc getc getchar

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