I'm developing a program without using CRT , so, some third party using very naive implementation of memset() likes:
char x[10];
for(int i= 0; i< 10; i++) {
x[i] = '\0';
}
It's alot of this type of code in that 3rd party library, and, I do not like messing around with it, so, how could I prevent Visual Studio from automatically converting from for loop to memset() ?
Edit: Why this is a problem ? Since, my program does not use CRT, so, if Visual Studio auto converts the for loop to memset(), it will cause the error:
Unresolved external symbol _memset