I have a code on which the optimizing compiler always fails, with each launch.
char* GetWinSockVersion()
{
char *tmpData = (char*)malloc(sizeof(wsaData.wVersion));
_itoa_s<wsaData.wVersion>(wsaData.wVersion, tmpData, 10);
return tmpData;
}
It does fail with the _itoa_s
. I'm interested, why does it fail all times?