Help us and donate little Bitcoins to pay the server costs: 1AXLPuRUBYc1JczTW4XS65GL6oWjNP2Vt2

User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer







because of the inhumane working conditions at amazon in Germany, I will offer the Amazon app no more! (ARD Reportage)
c:stdio.h:puts

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)

The new Question & Answer System is online and waiting for your Questions about Programming problems http://ask.code-reference.com Impressum