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

Usage

   #include <stdio.h>
   int puts(const char *s);

   ANSI

Description

   puts writes the string s to stdout (without the terminating 0), then
   writes a newline to stdout.

Example 

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

   int main()
   {
       char *string = "Display this string using puts,";
       char *string2 = "Puts inserts a newline character.";
       puts(string);
       puts(string2);
       return EXIT_SUCCESS;
   }


Return Value

   Returns a positive value if successful, otherwise EOF.

See Also

   fprintf, fputs, gets, printf




See Also: fprintf fputs gets printf

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