•  Back 
  •  GEMDOS Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FileBconout()
Cprnout()                                                            GEMDOS

Syntax

WORD Cprnout( ch )
WORD ch;

Function      Cprnout() sends one character to GEMDOS handle 3 (normally
              'prn:').

Opcode        5 (0x05)

Availability  All GEMDOS versions.

Parameters    ch is a WORD value, however, only the lower 8 bits are sent
              to the output stream. The upper eight bits should be 0.

Binding       move.w   ch,-(sp)
              move.w   #$5,-(sp)
              trap     #1
              addq.l   #4,sp

Return Value  Cprnout() returns a non-zero value if the function
              successfully wrote the character to the printer or 0
              otherwise.

Comments      No input translation is performed with this call. Therefore,
              you must send an ASCII 13 and ASCII 10 to force a new line.

See Also      Bconout()