NAME
-
print - print value
SYNOPSIS
-
#include <basic/string.h>
#include <basic/type.h>
#include <basic/generic.h>
print(type, generic)
int type;
union generic generic;
DESCRIPTION
-
Print formats the value given by type, generic (see
generic(inc)) and outputs it to the current file (see initio(io)).
It is legal to write sequentially to a random file provided the write is
entirely within the buffer. Strings are written without modification. Numeric
values are preceded by a blank if non-negative, formatted by numcvt (see
numcvt(io)), and written followed by a blank.
This function implements the value printing capability of the LPRINT,
PRINT and PRINT # statements.
SEE ALSO
-
generic(inc), initio(io), numcvt(io)
lprint(stmt), print(stmt), print #(stmt)
DIAGNOSTICS
-
Error 5 (Illegal function call) is generated if the file is open for input only.
from
The Basmark QuickBASIC Programmer’s Manual
by
Lawrence Leinweber