1 --- fputs.3.bsdnew 2009-11-11 13:33:07.000000000 -0800
2 +++ fputs.3 2009-11-11 13:33:08.000000000 -0800
7 -.Fn fputs "const char *str" "FILE *stream"
9 +.Fa "const char *restrict s"
10 +.Fa "FILE *restrict stream"
13 -.Fn puts "const char *str"
20 writes the string pointed to by
23 to the stream pointed to by
26 @@ -61,7 +66,7 @@ to the stream pointed to by
32 and a terminating newline character,
35 @@ -90,6 +95,14 @@ may also fail and set
37 for any of the errors specified for the routines
41 +now returns a non-negative number (as opposed to 0)
42 +on successful completion.
43 +As a result, many tests (e.g., "fputs() == 0", "fputs() != 0")
44 +do not give the desired result.
45 +Use "fputs() != EOF" or "fputs() == EOF"
46 +to determine success or failure.
50 @@ -102,3 +115,13 @@ and
54 +While not mentioned in the standard, both