C language > Beginner questions

stdio.h and scanf_s

(1/1)

caan:
Hi
I have included stdio.h in the program but still I get a warning when using scanf_s or printf_s.
/Anders

frankie:
You must enable extensions TR24731-1, C11 annex K before including stdio.h.
I.e.

--- Code: ---#define __STDC_WANT_LIB_EXT1__ 1
#include <stdio.h>

.... //Your code

--- End code ---

Navigation

[0] Message Index

Go to full version