CCstrtohex
Previous Topic  Next Topic 

Synopsis:

       hexstr=CCstrtohex(string);


Arguments:

       string - The string to convert to a hexadecimal string


Description:  This function converts the string argument into the corresponding hexadecimal string.    Each character of the string will be converted to exactly two hexadecimal characters in the returned string.      This function is useful in the CCsetparm() function where a hexadecimal string is required for a parameter value.


Examples:


           // This will return hex_str="343432303832323232"

       hex_str=CCstrtohex("442082222");


       // This will return hex_str="010fffde"

       hex_str=CCstrtohex("`01`0f`ff`de");