Populates the supplied buffer with the fully expanded text value of the IP address. This is for the benefit of diagnostics. Pointer to the populated buffer
| Return Type | Function name | Arguments |
|---|---|---|
| const char* | hzIpaddr::Full | (void) |
Declared in file: hzIpaddr.h
Defined in file : hzIpaddr.cpp
Function Logic:
Function body:
const char* hzIpaddr::Full (void)
{
// Populates the supplied buffer with the fully expanded text value of the IP address. This is for the benefit of diagnostics.
//
// Argument: r The 16-byte recepticle to be populated
//
// Returns: Pointer to the populated buffer
_hzfunc("hzIpaddr::Full") ;
char* pBuf ; // Text recepticle
pBuf = _thisfn.ScratchPad(24);
sprintf(pBuf, "%03u.%03u.%03u.%03u", (m_Ipa & 0xff000000)>>24,(m_Ipa&0xff0000)>>16,(m_Ipa&0xff00)>>8,m_Ipa&0xff);
return pBuf ;
}