Does built-in "format" have a string size limit?


#1

Seems like “format” only accepts control strings shorter than 256 characters. Is that correct? When I try to pass a longer string to be processed, uLisp reports “no room”.


#2

It wasn’t an intentional limitation. You can fix it by changing the line in the definition of fn_format() from:

uint8_t n = 0, width = 0, w, bra = 0;

to:

uint16_t n = 0, width = 0, w, bra = 0;

I’ll fix that next release. Thanks for spotting it!


#3