With whitespace intact...
For note, the "%5d" is the problem -- it can grow beyond 5 digits. I recommend asprintf, since it will calculate lengths automatically. If not, please always use snprintf.
With whitespace intact...
For note, the "%5d" is the problem -- it can grow beyond 5 digits. I recommend asprintf, since it will calculate lengths automatically. If not, please always use snprintf.