WikiPendium

(beta)

Cconws()

WikiPendium :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ec2-184-73-56-98.compute-1.amazonaws.com

Cconws()

(Char CONsole Write String)

WORD Cconws( str )

char *str;

Cconws() writes a string to GEMDOS handle 1 (normally 'con:').

Opcode

9 (0x09)

Availability

All GEMDOS versions.

Parameters

str is a pointer to a null-terminated character string to be written to the output stream.

Binding

	pea	str
	move.w	#$09,-(sp)
	trap	#1
	addq.l	#6,sp


Return Value

Cconws() returns a WORD conatining the number of characters output or 0 if an error occurred.

Caveats

With GEMDOS versions below 0.15, this handle should not be redirected to a write-only device as the call attempts to read from the output stream to process special keys.

Comments

No line feed translation is performed on outputted characters so both an ASCII 13 and ASCII 10 must be sent to force a new line. In addition, the system checks for special keys so a CTRL-C character (ASCII 3) embedded in the string will terminate the process.

See Also

Cconout(), Cconrs()

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