Update todes.c

This commit is contained in:
JiuMu3
2024-09-25 21:36:31 +08:00
committed by GitHub
parent 6f26d90ea6
commit 99dd590519

View File

@@ -7,7 +7,7 @@ int main()
int fd = open("data.dat", O_WRONLY | O_CREAT | O_TRUNC);
if (fd == -1)
{
fputs("file open error");
fputs("file open error",stdout);
return -1;
}
@@ -17,4 +17,4 @@ int main()
printf("Second file descriptor: %d \n", fileno(fp)); //转回文件描述符
fclose(fp);
return 0;
}
}