This language bar is your friend. Select your favorite languages!

Idiom #214 Pad string on the right

Append extra character c at the end of string s to make sure its length is at least m.
The length is the number of characters, not the number of bytes.

#Edit dateEdit SummaryEditor
👁 Δ 9 2019-11-11, 17:25 [Fortran] Added colon to make it compile tkoenig
👁 Δ 8 2019-11-05, 17:58 New Fortran implementation by user [cjcoats] cjcoats
👁 Δ 7 2019-11-04, 23:26 New Ruby implementation by user [steenslag] steenslag
👁 Δ 6 2019-11-04, 23:26 New Ruby implementation by user [steenslag] steenslag
👁 Δ 5 2019-11-04, 19:04 New Python implementation by user [Oldboy] Oldboy
👁 Δ 4 2019-11-03, 13:34 New Pascal implementation by user [Bart] Bart
👁 Δ 3 2019-11-02, 22:06 Linked to idiom #215 [Pad string on the left] programming-idioms.org
👁 Δ 2 2019-11-02, 22:02 Linked to idiom #156 [Format integer with zero-padding] programming-idioms.org
1 2019-11-02, 22:01 Idiom creation by user [programming-idioms.org] programming-idioms.org