c语言
普通网友
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C语言中的dirent.h说明
dirent.h是用于目录操作的头文件,linux 默认在/usr/include目录下(会自动包含其他文件),常见的方法如下:1. opendir() 打开目录,并返回句柄2. readdir() 读取句柄,返回dirent结构体3. telldir() 返回当前指针的位置,表示第几个元素4. close() 关闭句柄原创 2015-08-17 00:48:25 · 19165 阅读 · 1 评论 -
c unistd.h说明
c语言中的unistd.h 定义了unix相关的函数1. getpid() --获取进程ideg: printf("process id: %ld", (long)getpid());2,getcwd() -- 获取工作目录eg:char buf[80];getcwd(buf, sizeof(buf));printf("current working di原创 2015-08-19 01:23:31 · 3712 阅读 · 0 评论 -
C中的常见库文件说明
1. sys/types.h 定义了常见的数据类型,如pid_t, time_t, off_t等2. limits.h 专门用于检测整型数据数据类型的表达值范围3. fcntl.h 文件相关库文件,与unistd.h配合使用,如定义了open函数范例:ssize_t size;int fd;char s[]原创 2015-08-21 04:49:24 · 852 阅读 · 0 评论 -
孤儿进程与僵尸进程[总结]
详见http://www.cnblogs.com/Anker/p/3271773.html,讲解非常好转载 2015-10-27 11:02:57 · 412 阅读 · 0 评论 -
getopt.h 头文件说明
详情请看:http://blog.chinaunix.net/uid-738944-id-3474852.html1. 定义长参数的列表static const struct option long_options[]={ {"force",no_argument,&force,1}, {"reload",no_argument,&force_reload,1},原创 2016-01-20 20:49:38 · 7892 阅读 · 0 评论
分享