Sorry for the probably basic question, but I’m trying to understand some code and I can’t understand what this (%016llx) placeholder means.
I understand that %x is HEX coding, and to the best of my knowledge the numbers in between should be the number of digits and the 0 padding; but I cannot decode the 016ll sequence, and googling didn’t helped so much more than showing an example in which it was somehow related to gcc.
Given that I’m a nearly-zero-experience programmer, can you help me?
The description of
fprintf()in the C99 Standard tells us that the%016llxconversion specification is made up of%character0flag for padding16as “minimum field width”llas “length modifiers”xconversion specifierSo, in whole it means to write a
unsigned long long intin hexadecimal notation occupying a minimum of 16 positions, padded with0.