Hey, I'm trying to read printf(3) and seems I need to use the * WIDTH
but I'm not quite sure how to go about it.
there needs to be 3 fields per line, the lines read in from file looks like this:
JUICE - APPLE:JUST JUICE:7
MILK - CHOCOLATE:BREAKA:7
this needs to be output backwards with specific justification.
isle number - right justified field width 5
brand name left justified field width 30
product name left justified 30
as so:
7 JUST JUICE JUICE - APPLE
7 BREAKA MILK - CHOCOLATE
is this exactly the same as c++ if so
it should work like
printf("%*5d%30s%30s", arg3, arg2, arg1) or something like that...