Quote:
|
Originally Posted by the_undefined
And regarding printf: Is it 80 chars / cycle max or 80 chars / fct call max? Just so I know which limit I got. After that I'll write an Error Handler in the printf class when the string exceeds the 80 sign max ...
|
Per printf call.
You can break up that printf of yours into two printf's and it will work fine.
The print_lib.c file has this lurking warning as part of the lead comment block:
Code:
* 3. The %s directive only supports a string of 40 bytes and the format string
* may not exceed 80 bytes. The sprintf routine is not included. Keep in
* mind that the stack size has a 256 byte limit.
That's the safest idea, to modify the IFI printf code to add a check for strings > the limit. We simply truncate the string if it's longer than ifi_printfBufr.