PUTS(3S) UNIX Programmer's Manual PUTS(3S) NAME puts, fputs - put a string on a stream file SYNOPSIS #include int puts (s) char *s; int fputs (s, stream) char *s; FILE *stream; HP-UX COMPATIBILITY Level: HP-UX/RUN ONLY Origin: System V DESCRIPTION _P_u_t_s copies the null-terminated string _s to the standard output stream _s_t_d_o_u_t and appends a new-line character. _F_p_u_t_s copies the null-terminated string _s to the named out- put _s_t_r_e_a_m. Neither routine copies the terminating null character. Note that _p_u_t_s appends a new-line character, but _f_p_u_t_s does not. This is to complement the corresponding input routines, _g_e_t_s and _f_g_e_t_s (_g_e_t_s drops the terminating new-line character, but _f_g_e_t_s keeps it). SEE ALSO ferror(3S), fopen(3S), fread(3S), gets(3S), printf(3S), putc(3S). DIAGNOSTICS Both routines return EOF on error.