How to use `format` to repeat a character
Bahman Movaqar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jul 11 02:02:12 PDT 2016
I'm sure I'm missing something very simple but how can I create a string
like "----" using `format`?
I check the docs on `format` and tried many variations including
`format("%.*c\n", 4, '-')` but got nowhere.
I'd appreciate any hint/help on this.
--
Bahman Movaqar
http://BahmanM.com - https://twitter.com/bahman__m
https://github.com/bahmanm - https://gist.github.com/bahmanm
PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)
More information about the Digitalmars-d-learn
mailing list