User Tools

Site Tools


Programming Reference/Librarys

Question & Answer

Q&A is closed


Table of Contents


    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
#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;


  This is a test for puts!

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/stdio.h/puts.txt · Last modified: 2024/02/16 01:05 (external edit)

Impressum Datenschutz