B
bahadir.balban
Hi,
I checked the C reference manual, but cannot find the right solution
for my printfs.
If I have a print of the format <field: value> such as
printf("Field: %x", val); or
printf("%s%x","Field:",val);
I want the "Field:" string to be padded on its right hand side, such
that, no matter how long the field string is, the value will appear in
the same column. How do I go doing that?
Thanks,
Bahadir
I checked the C reference manual, but cannot find the right solution
for my printfs.
If I have a print of the format <field: value> such as
printf("Field: %x", val); or
printf("%s%x","Field:",val);
I want the "Field:" string to be padded on its right hand side, such
that, no matter how long the field string is, the value will appear in
the same column. How do I go doing that?
Thanks,
Bahadir