Pelles C forum

C language => Beginner questions => Topic started by: caan on October 01, 2017, 06:03:31 AM

Title: stdio.h and scanf_s
Post by: caan on October 01, 2017, 06:03:31 AM
Hi
I have included stdio.h in the program but still I get a warning when using scanf_s or printf_s.
/Anders
Title: Re: stdio.h and scanf_s
Post by: frankie on October 01, 2017, 03:30:44 PM
You must enable extensions TR24731-1, C11 annex K before including stdio.h.
I.e.
Code: [Select]
#define __STDC_WANT_LIB_EXT1__ 1
#include <stdio.h>

.... //Your code