linux c之c语言符合标准的头文件和linux常用头文件
生活随笔
收集整理的這篇文章主要介紹了
linux c之c语言符合标准的头文件和linux常用头文件
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.C語言符合標準的頭文件
#include <assert.h> //設定插入點 #include <ctype.h> //字符處理 #include <errno.h> //定義錯誤碼 #include <float.h> //浮點數處理 #include <fstream.h> //文件輸入/輸出 #include <iomanip.h> //參數化輸入/輸出 #include <iostream.h> //數據流輸入/輸出 #include <limits.h> //定義各種數據類型最值常量 #include <locale.h> //定義本地化函數 #include <math.h> //定義數學函數 #include <stdio.h> //定義輸入/輸出函數 #include <stdlib.h> //定義雜項函數及內存分配函數 #include <string.h> //字符串處理 #include <strstrea.h> //基于數組的輸入/輸出 #include <time.h> //定義關于時間的函數 #include <wchar.h> //寬字符處理及輸入/輸出 #include <wctype.h> //寬字符分類
2.linux常用頭文件如下:
POSIX標準定義的頭文件 <dirent.h> 目錄項 <fcntl.h> 文件控制 <fnmatch.h> 文件名匹配類型 <glob.h> 路徑名模式匹配類型 <grp.h> 組文件 <netdb.h> 網絡數據庫操作 <pwd.h> 口令文件 <regex.h> 正則表達式 <tar.h> TAR歸檔值 <termios.h> 終端I/O <unistd.h> 符號常量 <utime.h> 文件時間 <wordexp.h> 字符擴展類型 ------------------------- <arpa/inet.h> INTERNET定義 <net/if.h> 套接字本地接口 <netinet/in.h> INTERNET地址族 <netinet/tcp.h> 傳輸控制協議定義 ------------------------- <sys/mman.h> 內存管理聲明 <sys/select.h> Select函數 <sys/socket.h> 套接字借口 <sys/stat.h> 文件狀態 <sys/times.h> 進程時間 <sys/types.h> 基本系統數據類型 <sys/un.h> UNIX域套接字定義 <sys/utsname.h> 系統名 <sys/wait.h> 進程控制 ------------------------------ POSIX定義的XSI擴展頭文件 <cpio.h> cpio歸檔值 <dlfcn.h> 動態鏈接 <fmtmsg.h> 消息顯示結構 <ftw.h> 文件樹漫游 <iconv.h> 代碼集轉換使用程序 <langinfo.h> 語言信息常量 <libgen.h> 模式匹配函數定義 <monetary.h> 貨幣類型 <ndbm.h> 數據庫操作 <nl_types.h> 消息類別 <poll.h> 輪詢函數 <search.h> 搜索表 <strings.h> 字符串操作 <syslog.h> 系統出錯日志記錄 <ucontext.h> 用戶上下文 <ulimit.h> 用戶限制 <utmpx.h> 用戶帳戶數據庫 ----------------------------- <sys/ipc.h> IPC(命名管道) <sys/msg.h> 消息隊列 <sys/resource.h>資源操作 <sys/sem.h> 信號量 <sys/shm.h> 共享存儲 <sys/statvfs.h> 文件系統信息 <sys/time.h> 時間類型 <sys/timeb.h> 附加的日期和時間定義 <sys/uio.h> 矢量I/O操作 ------------------------------ POSIX定義的可選頭文件 <aio.h> 異步I/O <mqueue.h> 消息隊列 <pthread.h> 線程 <sched.h> 執行調度 <semaphore.h> 信號量 <spawn.h> 實時spawn接口 <stropts.h> XSI STREAMS接口 <trace.h> 事件跟蹤
總結
以上是生活随笔為你收集整理的linux c之c语言符合标准的头文件和linux常用头文件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux c之使用pthread_cr
- 下一篇: linux网络编程之inet_pton和