OK, it's something on my end. Have no idea what, at this point.
I re-downloaded the web page as:
fmhy.htm, from firefox-developer 111.0b8 (64 bit)
I'm on Win7 Pro SP1
Size: 674 KB (690,470 bytes)
Size on Disk: 676 KB (692,224 bytes)
I did click the 'unblock' button in file properties.
re-compiled in Pelles, same error result.
re-compiled in VS2015, same error result.
Debug build in VS2015, error code 0x00000002.
compiled w/John's code, error 'BAD'.
//john.c
////////////////////////////
#include <windows.h>
#include <stdio.h>
int main(int argc, char **argv)
{
char infile[256]={0};
FILE *fp;
sprintf(&infile[0],"%s","C:\\mycollectedprogramming\\reddit3\\fmhy.htm");
if((fp=fopen(infile,"rb"))==NULL){
MessageBoxA(NULL,"BAD","Filecheck",MB_OK);
return 0;
}
else{
fclose(fp);
MessageBoxA(NULL,"OK","Filecheck",MB_OK);
}
return 0;
}
Attached a screenshot of debug build.