MCPcopy Create free account
hub / github.com/DanielOgorchock/ST_Anything / printByte

Method printByte

Arduino/libraries/Ethernet2/src/Dhcp.cpp:509–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509void DhcpClass::printByte(char * buf, uint8_t n ) {
510 char *str = &buf[1];
511 buf[0]='0';
512 do {
513 unsigned long m = n;
514 n /= 16;
515 char c = m - 16 * n;
516 *str-- = c < 10 ? c + '0' : c + 'A' - 10;
517 } while(n);
518}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected