I have level 4 warning in my C++ project I want to solve it the warning is
Warning 1 warning C4996: 'gmtime': This function or variable may be unsafe. Consider using gmtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
Warning 2 warning C4996: 'asctime': This function or variable may be unsafe. Consider using asctime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
code C++
time_t ltime;
time(<ime);
tm* gmt = gmtime(<ime);
char* asctime_remove_nl = asctime(gmt);
gmtime_s
andasctime_s
? – Daan Timmer