MSVC compiler says that fopen() is deprecated, and recommends the use of fopen_s().
fopen()
fopen_s()
Is there any way to use fopen_s() and stil
if you are using C11, fopen_s is a standard library:
fopen_s
http://en.cppreference.com/w/c/io/fopen
in gcc you need to use --std=C11 parameter.
gcc
--std=C11