0
点赞
收藏
分享

微信扫一扫

ulink函数的使用【学习笔记】

爱喝酒的幸福人 2022-08-22 阅读 81

1 #include "apue.h"
2 #include <fcntl.h>
3
4 int main(void)
5 {
6 if(open("tempfile",O_RDWR) < 0)
7 err_sys("open error");
8 if(unlink("tempfile") < 0)
9 err_sys("unlink error");
10 printf("file unlinked\r\n");
11 sleep(15);
12 printf("done\r\n");
13
14 exit(0);
15 return 0;
16 }
17

ulink函数的使用【学习笔记】_#include

 



举报

相关推荐

0 条评论