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

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.