16,548
社区成员




void WinToUnix(char *strIn, char *strOut) {
FILE *fpIn;
FILE *fpOut;
fopen_s(&fpIn, strIn, "rb");
fopen_s(&fpOut, strOut, "wb");
if(fpIn==NULL || fpOut==NULL) return;
char ch;
while((ch=fgetc(fpIn))!=EOF) {
if(ch!='\r') {
fputc(ch, fpOut);
}
}
fclose(fpIn);
fclose(fpOut);
}