snprintf pad length specifier not working

Please post a full example program that shows the problem.