string formatting - What is the meaning of the format control specifier %016I64X in sprintf_s -


what meaning of format control specifier "%s\%016i64x%s" in sprintf_s command ?

as far know, defines string converts numbers unsigned 64 bit integer in hexadecimal format. know whether right ? please me..

char lfilename[max_path]; sprintf_s( lfilename, max_path, "%s\\%016i64x%s", msavepath.getbuffer(),abuffer->gettimestamp(), lext ); 

first, looks visual c++ usage of

int sprintf_s(char *buffer, size_t sizeofbuffer, const char *format, ...); 

the format consists of multiple directives: "%s", "\\", "%016i64x", "%s".

"%s" "when used printf functions, specifies wide-character string; ..." more

"\\" \.

"%016i64x" x format specifier of hexadecimal output. 0 indicate zero-filling needed. 16 indicate minimum output length. i64 windows specific modifier indicating expected integer of windows specific type unsigned __int64. more

you on right track "unsigned 64 bit integer".


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -