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


Usage

   #include <stdio.h>
   int fputs(const char *s,FILE *fp);

   ANSI

Description

   fputs writes the string s (excluding the terminating 0) to the stream fp.

Example 

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

   int main()
   {
       if (fputs ("Hello World\n", stdout) == EOF) {
           fprintf(stderr, "Output error\n");
           return EXIT_FAILURE;

       }
       return EXIT_SUCCESS;
   }

Return Value

   Returns non-negative if successful, EOF if a write error occurred.

See Also

   fgets, gets, puts



See Also: fgets gets puts

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