Hex-Rays logo State-of-the-art binary code analysis tools
email icon
qsnprintf/qsscanf

safer versions of sprintf/sscanf

safer versions of sprintf/sscanf

Our definitions of sprintf-like functions support one additional format specifier

"%a" which corresponds to ::ea_t

Usual optional fields like the width can be used too: %04a. The width specifier will be doubled for 64-bit version. These function return the number of characters _actually written_ to the output string. excluding the terminating zero. (which is different from the snprintf). They always terminate the output with a zero byte (if n > 0).