Witam, mój problem polega na tym ze wyskakuje mi warning a nie wiem jak go usunąć.
warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
Funkcja:
int plik_istnieje(char* filename)
{
FILE * fp;
fp = fopen(filename, "rb");
if(fp != NULL) { fclose(fp); return 1; } else { return 0; }
}
Gdy zmieniam "fopen" na "fopen_s" wyskakuje taki bład:
error C2660: 'fopen_s' : function does not take 2 arguments
Proszę o pomoc.