I am trying to pad result with a length of zeros specified by padlength,
I'm unsure of how to do this since the printf doesn't take this arg..
Code:void printConversion(int value) { char *result = convert(value); int padLength = 12-strlen(result); printf("%d ",value); printf("%0padLengths\n",result); } char *convert(int value) { static char buf[5]; itoa(value, buf, 2); return buf; }