lua-users home
lua-l archive

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

On 19.01.2023 at 08:05 bil til wrote:

> Am Mi., 18. Jan. 2023 um 22:27 Uhr schrieb Andreas Falkenhahn
> <>:

>> Personally not but I think for reasons of portability it would be
>> nice if Lua's string.format() behaved the same as the C specification
>> (where possible). As I said, I noticed this because some code I was
>> porting from C used more than two digits and I was surprised that it
>> failed with Lua.

> Can you give a C code example?

See here: 

In that code, "length" is often >= 100, resulting in a three digit width.

Best regards,
 Andreas Falkenhahn