Hallo,
I got a warning #2027: Missing prototype for 'fwprintf_s
with ver 6 and with 6.5r4
The declaration in <wchar.h> is prefixed with the following macro
#define _CRTCHK(f,n,m) __declspec(vaformat(f,n,m))
which is new since ver 6.
Is this a normal behaviour?
czerny
From PellesC help Appendix -> ISO TR24731-1:
To enable the extended functions in Pelles C, define the macro __STDC_WANT_LIB_EXT1__ as the integer constant 1.
#define __STDC_WANT_LIB_EXT1__ 1
#include <stdio.h>
#include <wchar.h>
int main(int argc, char **argv)
{
FILE *f;
f = stdout;
fwprintf_s(f, L"test\n");
wprintf_s(L"test\n");
return 0;
}