cecntering func

This commit is contained in:
Drath
2025-10-03 15:54:10 +02:00
parent 5cc5d00493
commit d95461f0cc
2 changed files with 8 additions and 1 deletions

View File

@@ -20,6 +20,7 @@
std::string pNum(double num, uint8_t decs = 0);
std::string pNum(float num, uint8_t decs = 0);
std::string pad(std::string s, uint8_t len, bool ljust = false);
std::string center(std::string str, uint8_t len);
std::string pBytes(double bytes, bool isKbytes = false);
std::string readFile(std::string path, size_t trim = 4096);
ssize_t readFile2(std::string path, char *buffer, size_t maxlen);