Just a quick question, how do i format my string output so that the space after the string is left blank?
e.g
The text is red is the maximum length that the string could be but it pads left and not right.Code:printf(" %5s %25s $%d.%d $%d.%d $%d.%d\n", headItem->itemID, headItem->itemName, headItem->prices[0].dollars, headItem->prices[0].cents, headItem->prices[1].dollars, headItem->prices[1].cents, headItem->prices[2].dollars, headItem->prices[2].cents);
How do i make it pad right?