

puts()                        STDIO                        puts()




Write string onto standard output

#iinncclluuddee <ssttddiioo.hh>
vvooiidd ppuuttss(_s_t_r_i_n_g) cchhaarr *_s_t_r_i_n_g

puts  appends a  newline character  to the  string pointed  to by
string, and writes the result onto the standard output.

***** Example *****

The following uses ppuuttss to write a string on the screen.


#include <stdio.h>

main()
{
        puts("This is a string.");
}


***** See Also *****

fputs(), STDIO

***** Notes *****

For  historical  reasons,  fputs  outputs the  string  unchanged,
whereas puts appends a newline character.



























COHERENT Lexicon                                           Page 1


