Hi,
I would like to know if their is a conversion specifier, or other
method, that will allow me to not use particular arguments to printf.
Failing that, is it permissable to simply "not use" the parameter if
it is at the end of the parameter list?
For example,
printf("%02d:%0 2d:%02d", hours, minutes, seconds); /* 11:59:00 */
printf("%02d:%0 2d", hours, minutes, seconds); /* 11:59 */
Thanks,
--
John Devereux
I would like to know if their is a conversion specifier, or other
method, that will allow me to not use particular arguments to printf.
Failing that, is it permissable to simply "not use" the parameter if
it is at the end of the parameter list?
For example,
printf("%02d:%0 2d:%02d", hours, minutes, seconds); /* 11:59:00 */
printf("%02d:%0 2d", hours, minutes, seconds); /* 11:59 */
Thanks,
--
John Devereux
Comment