Skip to content

cf_string_hex

Category: string
GitHub: cute_string.h


Sets the string to the hex representation of an unsigned integer.

#define cf_string_hex(s, uint) sfmt(s, "0x%x", uint)
Parameters Description
s The string. Modified in-place.
uint The unsigned integer value.

Remarks

Shortform: shex(s, uint).

cf_string_int
cf_string_uint
cf_string_tohex