lua-users home
lua-l archive

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


To blank-pad a file whose format requires it. I realize I could make a CFunction to do this easily, but I'm just wondering if there's a way in pure lua that doesn;t involve zillions of string concatenations.

Michael

----- Original Message ----- From: "Petite Abeille" <petite.abeille@gmail.com>
To: "Lua list" <lua@bazar2.conectiva.com.br>
Sent: Wednesday, August 19, 2009 1:37 PM
Subject: Re: Simple way to create a big string of blanks?



On Aug 19, 2009, at 10:22 PM, Michael Newberry wrote:

Sure I could do something like make a literal string of 100 and then concetenate 25 of them, but the number of bytes is arbitrary.

Out of curiosity, what are you planning to use such a string for?