spc - print spaces


short n;


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. 


spc(func), lprint(stmt), print(stmt), print #(stmt)


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