C Library Functions  - putchar (3)

NAME

putchar(3f) - [M_io:QUERY] write a single-byte character to stdout via C interface (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Returns
Examples
Author
License

SYNOPSIS

function putchar() result(ch)

    character(len=1),intent(in) :: ch
    integer :: putchar

DESCRIPTION

Write a single character to stdout using the C interface

OPTIONS

ch A single character to place on stdout

RETURNS

A integer value for the ADE (ASCII Decimal Equivalent) of the character, or a negative value if an error occurs.

EXAMPLES

sample usage

   program demo_putchar
   use M_io, only : getchar, putchar
   implicit none
   character(len=1) :: byte
   integer :: istat
      ! copy stdin to stdout as a stream one byte at a time
      do while (getchar(byte).ge.0)
         istat=putchar(byte)
      enddo
   end program demo_putchar

AUTHOR

John S. Urban

LICENSE

Public Domain


Nemo Release 3.1 putchar (3) February 23, 2025
Generated by manServer 1.08 from fdb4c3ed-40cf-4498-aab0-bba52bf0feb5 using man macros.