User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:stdio.h:puts
click
to support this page (eg 0,42 € or so) Thanks.

Table of Contents

puts

    int puts(const char *str);

Writes str (excluding terminating NUL) and a newline to stdout. Returns non-negative on success, EOF on error.

Example Source

/* 
 * puts example code
 * http://code-reference.com/c/stdio.h/puts
 */
 
#include <stdio.h> /* including standard library */
//#include <windows.h> /* uncomment this for Windows */
 
 
int main ( void )
{
  char string [30] = "This is a test for puts!";
  puts (string);
  return 0;
}

output

  ./puts 
  This is a test for puts!
advertising
c/stdio.h/puts.txt · Last modified: 2013/01/22 22:02 (external edit)

Impressum