/C语言标准头文件:#include assert.h// assert断言#include stdio.h// 定义输入/输出函数 #include stdlib.h// 定义杂项函数及内存分配函数,atoi,free,abs,rand#include string.h// 字符串处理...
/C语言标准头文件:
#include <assert.h> // assert断言
#include <stdio.h> // 定义输入/输出函数
#include <stdlib.h> // 定义杂项函数及内存分配函数,atoi,free,abs,rand
#include <string.h> // 字符串处理
#include <errno.h> // 定义错误码
#include <stddef.h> //
//linux常用头文件 -- POSIX标准定义的头文件
#include <fcntl.h> // 文件控制,https://www.cnblogs.com/xuyh/p/3273082.html
#include <netdb.h> // 网络数据库操作
#include <arpa/inet.h> // 网络地址,INTERNET定义,htonl,htons
#include <netinet/in.h> // INTERNET地址族 sockaddr_in定义,INADDR_ANY
#include <netinet/tcp.h> // 传输控制协议定义
//linux常用头文件 -- POSIX定义的XSI扩展头文件
#include <pthread.h> // 线程
#include <unistd.h> //符号常量
#include <netinet/in.h> // INTERNET地址族 sockaddr_in定义
#include <netinet/tcp.h> // 传输控制协议定义
//#include sys/xxx.h是Linux系统中的系统头文件
#include <sys/ioctl.h> //https://www.cnblogs.com/tdyizhen1314/p/4896689.html
#include <sys/prctl.h>
#include <sys/select.h> // for socket
#include <sys/socket.h> // for socket
#include <sys/time.h> //Linux系统的日期头文件,通常会包含include "time.h" C库函数头文件;
#include <sys/types.h> // for socket
参考资料:
https://blog.csdn.net/u011068702/article/details/60764754
https://www.cnblogs.com/leijiangtao/p/3712698.html
https://www.cnblogs.com/happyliuyi/p/5209260.html
http://www.cnblogs.com/wannable/p/5910968.html
沃梦达教程
本文标题为:linux C语言头文件
基础教程推荐
猜你喜欢
- 纯C++代码详解二叉树相关操作 2023-05-15
- C语言的三种条件判断语句你都了解吗 2023-03-05
- C语言数组长度的计算方法实例总结(sizeof与strlen) 2023-04-26
- 利用QT设计秒表功能 2023-05-30
- C语言植物大战数据结构二叉树递归 2023-04-09
- 05-C语言进阶——动态内存管理 2023-11-20
- Qt数据库应用之实现通用数据库请求 2023-03-18
- g++: const 丢弃限定符 2022-10-07
- character-encoding – Linux中最常见的C语言编码(和Unix?) 2023-11-21
- VisualStudio2010安装教程 2023-01-05
