C puts
Talk0
116pages on
this wiki
this wiki
| |
This page has been moved to the Programmer's Wiki.
Please do not make any changes or additions to this page. Any modifications, if still appropriate, should be made on C puts at the Programmer's Wiki. |
Contents |
Synopsis
Edit
#include <stdio.h> int puts(const char *s);
Description
Edit
puts writes the string pointed to by s to stdout and appends a '\n' (linefeed).
It returns EOF on error.
Examples
Edit
#include <stdio.h>
int main()
{
puts("Hello, World!");
return 0;
}
This will simply print "Hello, World!", followed by line feed, to stdout.