source/gjAPI.cpp
std::string gjAPI::UtilCharToHex(const char cChar)
{
    int iValue = (int)cChar;
    if(iValue < 0) iValue += 256;

    char acBuffer[8];
    std::sprintf(acBuffer, "%02X", iValue);

    return acBuffer;
}
// ****************************************************************
/* convert a character into his hexadecimal value */
convert a character into his hexadecimal value
convert a character into his hexadecimal value
std::string gjAPI::UtilCharToHex(const char cChar)
{
    int iValue = (int)cChar;
    if(iValue < 0) iValue += 256;
    char acBuffer[8];
    std::sprintf(acBuffer, "%02X", iValue);
    return acBuffer;
}
std :: string gjAPI :: UtilCharToHex ( const char cChar ) { int iValue = ( int ) cChar ; if ( iValue < 0 ) iValue += 256 ; char acBuffer [ 8 ] ; std :: sprintf ( acBuffer , " " , iValue ) ; return acBuffer ; }
convert a character into his hexadecimal value
convert a character into his hexadecimal value