Hello Pirmin,
If I do want to right align the numbers (%-5d) the function crashes my program.
This should not happen. Thank you for reporting. I just opened an issue about it:
unfortunately, I am not able to reproduce the problem. When modifying the printf test using the attached patch, the program runs just fine.
Could you share a small test program that triggers the problem? That would be greatly appreciated.
Best regards Norman