NAME
-
spc - print spaces
SYNOPSIS
-
spc(n)
short n;
DESCRIPTION
-
Spc outputs n blanks 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. If these blanks would extend beyond the width of a line in
the file, the extra blanks are wrapped around to the next line. No more than a
full line’s worth of blanks are ever output. The additional blanks are
ignored, i.e., the number of blanks actually output is the remainder of
n divided by the width.
This function implements the SPC function of the LPRINT, PRINT
and PRINT # statements.
SEE ALSO
-
spc(func), lprint(stmt), print(stmt), print #(stmt)
DIAGNOSTICS
-
Error 5 (Illegal function call) is generated if the file is open for input only
or if n is negative or is greater than 255.
from
The Basmark QuickBASIC Programmer’s Manual
by
Lawrence Leinweber