代码如下冲咐败简羡
#include散颤
int initLog(char *path)
{
FILE *fp = fopen(path, "w");
if (fp == NULL)
{
return -1;
}
fclose(fp);
return 0;
}
int main()
{
if (initLog("D:\\ee.log"))
printf("failed to create log");
else
printf("SUCCESS");
return 0;
}
哈哈哈哈哈哈你是哪个,瓜大信安的嘛?