printnnl
Description
The printnnl procedure writes one or more expressions to the user’s terminal as a single line. The line does not terminate with a new line character. A space separates each argument.
The print and printnnl procedures work in the same manner. The only difference being that print terminates the generated character string with a newline character, whereas printnnl does not.
Syntax
printnnl (expression1 [, expression2, …]);
Arguments
expression1 | Required. An expression that contains the information to display to the user |
expression2 … | Optional. Additional expressions to display to the user. |
Return Values
Because printnnl is a procedure, no return value is set.
Example
In the example below,
printnnl ("Your task request has been accepted."); print ("Thank you.");
writes the following to the user's terminal:
Your task request has been accepted. Thank you.
The text that is printed by printnnl is not terminated with a newline character, so the text that is printed with print appears on the same line.
See Also
fprintf, outpuredirect, print, printf, sprintf(), syslog