Wikia

ProgrammingWiki

C puts

Talk0
116pages on
this wiki
Programmer's 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.

See also Edit

Advertisement | Your ad here

Photos

Add a Photo
38photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki