Puts Fputs put a string on a file #include <stdio.h> puts char *s fputs char *s FILE *fp Description Fputs copies the (null-terminated) string pointed to by "s" onto the file "fp". Puts copies the string "s" onto the standard output and appends "\n". The terminating null is not copied by either function. Caveats The inconsistency of the new-line being appended by puts and not by fputs is dictated by history and the desire for compatibility.