Compaq Fortran for Tru64 UNIX Alpha Systems V5.4

putc, fputc (3f)


Syntax

  integer*4 putc, ierrno
  character*1 char
  external putc
  ierrno = putc ( char )

  integer*4 fputc, ierrno, lunit
  character*1 char
  external fputc
  ierrno = fputc ( lunit, char )

Description

  These functions write a character to the file associated with a Fortran
  logical unit (bypassing normal Fortran I/O).  The putc function writes to
  logical unit 6, normally connected to the control terminal output.

Return Values

  If the functions are successful, a zero is returned; otherwise, an error
  code is returned.

See Also

  intro(2), perror(3f), putc(3s)