linux下C/C++头文件梳理
2017-06-01 10:53
363 查看
Linux头文件分为以下三类:
标准头文件:一共29个头文件。 http://en.cppreference.com/w/c/header点击打开链接
C++标准头文件:除C标准库外,还包括STL标准库等10+个头文件 http://www.cplusplus.com/reference/stl/ 。把C标准头文件放到std的命名空间里,文件名统一加上c前缀,如#include <string.h> 改成#include <cstring>外,
linux系统头文件:操作系统相关,如socket网络、共享内存、信号量等,常用的就10+左右。http://pubs.opengroup.org/onlinepubs/7908799/headix.html
#include <string.h> 字符串操作相关
memcpy /strcpy 区别?
memset
strncpy
#include <stdio.h> 标准输入输出
fopen/fwrite
printf/scanf
#include <stdio.h> 标准输入输出
fopen/fwrite
printf/scanf
#include <stdlib.h> 常用的一些函数库
strtol/atoi
malloc/free
rand
qsort
abs/div
size_t
#include <math.h> 函数库
sin/cos
pow/sqrt
ceil/floor
#include <stdint.h>
uint32_t
SIZE_MAX
#include <ctype.h>
islower
toupper
#include <time.h>
time
mktime
#include <setjmp.h>...
chown()
close()/write()/read()
fsync()
sleep()/usleep()
getpid()
#include <fcntl.h>
open()
create()
fcntl()
#include <pthread.h>
#include <fcntl.h>
open()
create()
fcntl()
#include <pthread.h>
sys目录下
<sys/shm.h>
<sys/msg.h>
<sys/socket.h>
<sys/sem.h>
<sys/stat.h>
<sys/time.h>
<sys/select.h>
<sys/epoll.h>
<sys/types.h>
标准头文件:一共29个头文件。 http://en.cppreference.com/w/c/header点击打开链接
C++标准头文件:除C标准库外,还包括STL标准库等10+个头文件 http://www.cplusplus.com/reference/stl/ 。把C标准头文件放到std的命名空间里,文件名统一加上c前缀,如#include <string.h> 改成#include <cstring>外,
linux系统头文件:操作系统相关,如socket网络、共享内存、信号量等,常用的就10+左右。http://pubs.opengroup.org/onlinepubs/7908799/headix.html
C标准库
#include <string.h> 字符串操作相关memcpy /strcpy 区别?
memset
strncpy
#include <stdio.h> 标准输入输出
fopen/fwrite
printf/scanf
#include <stdio.h> 标准输入输出
fopen/fwrite
printf/scanf
#include <stdlib.h> 常用的一些函数库
strtol/atoi
malloc/free
rand
qsort
abs/div
size_t
#include <math.h> 函数库
sin/cos
pow/sqrt
ceil/floor
#include <stdint.h>
uint32_t
SIZE_MAX
#include <ctype.h>
islower
toupper
#include <time.h>
time
mktime
#include <setjmp.h>...
C++标准库
#include <unistd.h>chown()
close()/write()/read()
fsync()
sleep()/usleep()
getpid()
#include <fcntl.h>
open()
create()
fcntl()
#include <pthread.h>
#include <fcntl.h>
open()
create()
fcntl()
#include <pthread.h>
sys目录下
<sys/shm.h>
<sys/msg.h>
<sys/socket.h>
<sys/sem.h>
<sys/stat.h>
<sys/time.h>
<sys/select.h>
<sys/epoll.h>
<sys/types.h>
相关文章推荐
- Windows/Unix/Linux编译C/C++添加头文件与库的搜索路径
- Linux中常用的C/C++头文件
- Windows/Unix/Linux编译C/C++添加头文件与库的搜索路径
- linux下的头文件 及C/C++头文件 一览表
- linux下的头文件 及C/C++头文件 一览表
- linux中常用的C/C++头文件
- linux下c,c++头文件的路径
- Linux下c/c++头文件介绍
- Linux中C/C++编译添加头文件可库路径方式
- Windows/Unix/Linux编译C/C++添加头文件与库的搜索路径
- linux下的头文件 及C/C++头文件 一览表
- Linux操作系统下C++头文件、库文件等搜索路径
- Linux中C/C++编译添加头文件和库路径方式
- Windows/Unix/Linux编译C/C++添加头文件与库的搜索路径
- Linux头文件 C/C++头文件
- Linux中C/C++头文件一览
- C++线性运算库梳理及Win/Linux下编译小记
- Linux C++中需要的头文件
- linux常用环境变量和c/c++头文件/库路径环境变量
- Linux中C/C++头文件一览