Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Misc.cpp
- Revision:
- 4:68ef570210d3
- Parent:
- 3:a1a820da71f6
--- a/Misc.cpp Tue Mar 23 21:21:11 2021 +0000 +++ b/Misc.cpp Thu Mar 25 01:05:14 2021 +0000 @@ -38,6 +38,14 @@ return tmp; } +//blank +string Misc::blank(int n){ + string out = ""; + for(int i = 0; i < n; i++) + out += " "; + return out; +} + //fill void Misc::fill(int *arr, int val, int size){ for(int i = 0; i < size; i++)