puts, fputs - put a string on a stream
int puts (const char *s);
int fputs (const char *s, FILE *stream);
puts writes the null-terminated string pointed to by s ,followed by a
new-line character, to the standard output stream stdout.
fputs writes the null-terminated string pointed to by s to the named
Neither function writes the terminating null character.
exit(2), lseek(2), write(2), abort(3C), fclose(3S), ferror(3S),
fopen(3S), fread(3S), printf(3S), putc(3S), stdio(3S).
On success both routines return the number of characters written;
otherwise they return EOF. This will happen if the routines try to write
on a file that has not been opened for writing.
puts appends a new-line character while fputs does not.
PPPPaaaaggggeeee 1111 [ Back ]