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

Function ltoa_wp

Sming/System/stringconversion.cpp:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18
19char* ltoa_wp(long val, char* buffer, int base, int width, char pad)
20{
21 char* buf_ptr = buffer;
22 if(val < 0 && base == 10) {
23 *buf_ptr++ = '-';
24 val = -val;
25 }
26 ultoa_wp((unsigned long)val, buf_ptr, base, width, pad);
27 return buffer;
28}
29
30char* ultoa_wp(unsigned long val, char* buffer, unsigned int base, int width, char pad)
31{

Callers 7

m_vsnprintfFunction · 0.85
ltoa_wFunction · 0.85
ltoaFunction · 0.85
itoaFunction · 0.85
StringMethod · 0.85
concatMethod · 0.85
printNumberMethod · 0.85

Calls 1

ultoa_wpFunction · 0.85

Tested by

no test coverage detected