1:代码
1 #include <string.h>
2 #include <stdio.h>
3 #include <fcntl.h>
4
5 int main(void)
6 {
7 char *p1 = "This is a c test code";
8 volatile int len = 0;
9
10 int fp = open("aaa.txt", O_RDWR);
11 if(fp)
12 perror("open fail\n");
13
14 return 0;
15 }
2:调试