Skip to main content

hex_alt_prefix_width

Function hex_alt_prefix_width 

Source
pub const fn hex_alt_prefix_width(val: c_ulonglong, width: usize) -> c_int
Expand description

Computes the field width for the "0x" prefix in space-padded alternate hex formatting (%*s%llx) so that the total output width (leading spaces + 2-byte prefix + hex digits) is at least width.