Missing prototype for 'fwprintf_s'

Started by czerny, April 24, 2011, 10:11:24 AM

Previous topic - Next topic

czerny

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

TimoVJL

#1
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;
}
May the source be with you