Home > Q&A > body text
error: ‘vsnprintf’ was not declared in this scope|
ubuntu,我明明包含了#include <stdarg.h>头文件,为什么还是这么显示?
#include <stdarg.h>
黄舟2017-04-17 13:57:43
Use the _vsnprintf function, which is a C standard library function.
_vsnprintf
阿神2017-04-17 13:57:43
I am C, I added #include <stdio.h> and it worked, I don’t understand
#include <stdio.h>