If I try to compile this
#include <stdio.h>
#include <stdarg.h>
int main(void)
{
char s[20];
vsprintf_s(s,20,"","");
return 0;
}
I get the following error
tst6\main.c(9): warning #2018: Undeclared function 'vsprintf_s'; assuming 'extern' returning 'int'.
I always remember, that I have to #define something to allow this function. But always I search half a hour or even longer the help file until I finally find the right hint.
#define __STDC_WANT_LIB_EXT1__ 1
Today I have noticed that vsprintf_s is marked with [TR24731-1] in its help head. So hopefully I get it quicker next time.
But I too read that this is a C11 function now.
Shouldn't it be available now without any defines if C11 is enabled?
czerny