WikiPendium

(beta)

Cprnout()

WikiPendium :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ec2-3-137-171-56.us-east-2.compute.amazonaws.com

Cprnout()


WORD Cprnout( ch )

WORD ch;

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()

Il n'y a pas de commentaire sur cette page. [Afficher commentaires/formulaire]