~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbms/src/cslib/CSStrUtil.cc

Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
741
741
 
742
742
#define HEX_DIGIT(x)    ((x) <= 9 ? '0' + (x) : 'A' + ((x) - 10))
743
743
 
 
744
// NOTE: cs_bin_to_hex() Always null terminates the result.
744
745
void cs_bin_to_hex(size_t size, char *hex, size_t len, const void *v_bin)
745
746
{
746
747
        const u_char *bin = (u_char *) v_bin;