| FastCRC Library | API |
|
SL_FCRC_ConvertToHex16
void SL_FCRCCALL SL_FCRC_ConvertToHex16( char* pDest, unsigned long nCRC, int bUpper );
Parameters
pDest
[out] A pointer to the text buffer that retrieves the result.
nCRC
[in] A number to convert.
bUpper
[in] Uppercase flag. If bUpper is 0, the result represents a lowercase string, otherwise it represents an uppercase string.
Remarks
Converts the first 16 bits of the number specified by nCRC into hexadecimal representation. The result is retrieved in the text buffer pointed by pDest.
Note. Before calling SL_FCRC_ConvertToHex16 function, allocate at least SLC_FCRC_MAXHEXSIZE bytes (9 bytes) for the text buffer pointed by pDest.
Example
See the example for SL_FCRC16_CalculateStr.
See Also SL_FCRC_ConvertToHex32
| Send Feedback to SlavaSoft Inc. | Tell a friend about FastCRC Library |