Ceci est une version archivée de
Cconws() à 2005-07-09 15:08:14.
(
Char
CONsole
Write
String)
WORD Cconws( str )
char *str;
Opcode
9 (0x09)
Availability
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 embedded in the string will terminate the process.
See Also