PUTS.3
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 1k
Category:

OS Develop

Development Platform:

WINDOWS

  1. ." @(#)puts.3s 6.1 (Berkeley) 5/15/85
  2. ."
  3. .TH PUTS 3  "May 15, 1985"
  4. .AT 3
  5. .SH NAME
  6. puts, fputs - put a string on a stream
  7. .SH SYNOPSIS
  8. .nf
  9. .ft B
  10. #include <stdio.h>
  11. int puts(char *fIsfP)
  12. int fputs(char *fIsfP, FILE *fIstreamfP)
  13. .ft P
  14. .fi
  15. .SH DESCRIPTION
  16. .B Puts
  17. copies the null-terminated string
  18. .I s
  19. to the standard output stream
  20. .B stdout
  21. and appends a
  22. newline character.
  23. .PP
  24. .B Fputs
  25. copies the null-terminated string
  26. .I s
  27. to the named output
  28. .IR stream .
  29. .PP
  30. Neither routine copies the terminal null character.
  31. .SH "SEE ALSO"
  32. .BR fopen (3),
  33. .BR gets (3),
  34. .BR putc (3),
  35. .BR printf (3),
  36. .BR ferror (3),
  37. .BR fread (3).
  38. .SH BUGS
  39. .B Puts
  40. appends a newline,
  41. .B fputs
  42. does not, all in the name of backward compatibility.