nanochess / pretty6502

A pretty printer for 6502, Z80, CP1610, TMS9900, and 8088 assembler code
BSD 2-Clause "Simplified" License
34 stars 4 forks source link

tip for clarifying repeat of indention characters #3

Closed robertlipe closed 6 years ago

robertlipe commented 6 years ago

https://github.com/nanochess/pretty6502/blob/192644256c104e5eee72d7c2e98bfff19629dcab/pretty6502.c#L40

It's not the first printf specifier that we are taught, but %* can do character repeats:

fprintf("%*s", 13, " "); // will print 13 spaces

nanochess commented 6 years ago

That's a good tip. Thanks!