lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Is there an easy way to create a large string of blanks? Say, 2500 or more long? I don't want it to involve 2500 reallocations like concatenation. I'm looking for something short of making a CFunction to do it.
 
I was trying something like this, but the precision and width are too long:
 
  sFmt = string.format( "%%-%d.%ds", nSkip, nSkip )
  return string.format( sFmt, " " )
Thanks,
 
Michael