MCPcopy Create free account
hub / github.com/SmingHub/Sming / printNumber

Method printNumber

Sming/Wiring/Print.cpp:63–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63size_t Print::printNumber(unsigned long num, uint8_t base, uint8_t width, char pad)
64{
65 char buf[8 * sizeof(num) + 1]; // Assumes 8-bit chars plus zero byte.
66 ultoa_wp(num, buf, base, width, pad);
67 return write(buf);
68}
69
70size_t Print::printNumber(const unsigned long long& num, uint8_t base, uint8_t width, char pad)
71{

Callers

nothing calls this directly

Calls 4

ultoa_wpFunction · 0.85
ulltoa_wpFunction · 0.85
ltoa_wpFunction · 0.85
lltoa_wpFunction · 0.85

Tested by

no test coverage detected