What is type-safe?
What does it mean and why is it important?
In my code error occured This function or variable may be unsafe. What does unsafe mean ?
#include <ctime>
int compareValues() {
time_t now = time(0);
tm* ltm = localtime(&now); //Localtime: This function or variable may be unsafe
if ((_year == ltm->tm_year) && (_month == 1 + ltm->tm_mon) && (_day == ltm->tm_mday)) {
return 1;
}
}
If i put in #define _CRT_SECURE_NO_WARNINGS to my code error is disabled but what does unsafe mean and what does #define _CRT_SECURE_NO_WARNINGS do ?