logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

putc.3p (2536B)


  1. '\" et
  2. .TH PUTC "3P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. putc
  12. \(em put a byte on a stream
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <stdio.h>
  17. .P
  18. int putc(int \fIc\fP, FILE *\fIstream\fP);
  19. .fi
  20. .SH DESCRIPTION
  21. The functionality described on this reference page is aligned with the
  22. ISO\ C standard. Any conflict between the requirements described here and the
  23. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  24. .P
  25. The
  26. \fIputc\fR()
  27. function shall be equivalent to
  28. \fIfputc\fR(),
  29. except that if it is implemented as a macro it may evaluate
  30. .IR stream
  31. more than once, so the argument should never be an expression with
  32. side-effects.
  33. .SH "RETURN VALUE"
  34. Refer to
  35. .IR "\fIfputc\fR\^(\|)".
  36. .SH ERRORS
  37. Refer to
  38. .IR "\fIfputc\fR\^(\|)".
  39. .LP
  40. .IR "The following sections are informative."
  41. .SH EXAMPLES
  42. None.
  43. .SH "APPLICATION USAGE"
  44. Since it may be implemented as a macro,
  45. \fIputc\fR()
  46. may treat a
  47. .IR stream
  48. argument with side-effects incorrectly. In particular,
  49. \fIputc\fP(\fIc\fP,*\fIf\fP++) does not necessarily work correctly.
  50. Therefore, use of this function is not recommended in such situations;
  51. \fIfputc\fR()
  52. should be used instead.
  53. .SH RATIONALE
  54. None.
  55. .SH "FUTURE DIRECTIONS"
  56. None.
  57. .SH "SEE ALSO"
  58. .IR "Section 2.5" ", " "Standard I/O Streams",
  59. .IR "\fIfputc\fR\^(\|)"
  60. .P
  61. The Base Definitions volume of POSIX.1\(hy2017,
  62. .IR "\fB<stdio.h>\fP"
  63. .\"
  64. .SH COPYRIGHT
  65. Portions of this text are reprinted and reproduced in electronic form
  66. from IEEE Std 1003.1-2017, Standard for Information Technology
  67. -- Portable Operating System Interface (POSIX), The Open Group Base
  68. Specifications Issue 7, 2018 Edition,
  69. Copyright (C) 2018 by the Institute of
  70. Electrical and Electronics Engineers, Inc and The Open Group.
  71. In the event of any discrepancy between this version and the original IEEE and
  72. The Open Group Standard, the original IEEE and The Open Group Standard
  73. is the referee document. The original Standard can be obtained online at
  74. http://www.opengroup.org/unix/online.html .
  75. .PP
  76. Any typographical or formatting errors that appear
  77. in this page are most likely
  78. to have been introduced during the conversion of the source files to
  79. man page format. To report such errors, see
  80. https://www.kernel.org/doc/man-pages/reporting_bugs.html .