SPC Name
SPC Purpose
Return a string with the specified number of spaces (or other char).
Category
Calling Sequence
s = spc(n, [text]) Inputs
n = number of spaces (= string length). in
text = optional text string. in
# spaces returned is n-strlen(strtrim(text,2))
Keyword Parameters
Keywords
CHARACTER=ch Character other than a space.
Ex: CHAR='-'.
/NOTRIM means do not do a strtrim on text.
Outputs
s = resulting string. out
Common Blocks
Notes
Note: Number of requested spaces is reduced by the
length of given string. Useful for text formatting.
Modification History
Written by R. Sterner, 16 Dec, 1984.
RES --- rewritten 14 Jan, 1986.
R. Sterner, 27 Jun, 1990 --- added text.
R. Sterner, 1994 Sep 7 --- Allowed text arrays.
R. Sterner, 1999 Jul 2 --- Added /NOTRIM keyword.
R. Sterner, 2010 May 03 --- Converted arrays from () to [].
Johns Hopkins University Applied Physics Laboratory.
Copyright (C) 1984, Johns Hopkins University/Applied Physics Laboratory
This software may be used, copied, or redistributed as long as it is not
sold and this copyright notice is reproduced on each copy made. This
routine is provided as is without any express or implied warranties
whatsoever. Other limitations apply as described in the file disclaimer.txt.