• ANSI C
  • POSIX库(标准C库除外)
  • ANSI C headers
    • assert.h
    • stddef.h
    • stdbool.h
    • stdint.h
    • stdarg.h
    • stdio.h
    • stdlib.h
    • string.h
    • time.h
    • math.h
    • errno.h
    • ctype.h
    • wctype.h
    • wchar.h
    • uchar.h

ANSI C

<assert.h>      Contains the assert macro, used to assist with detecting logical errors and other types of bug in debugging versions of a program.
<complex.h> C99 A set of functions for manipulating complex numbers.
<ctype.h>       Defines set of functions used to classify characters by their types or to convert between upper and lower case in a way that is independent of the used character set (typically ASCII or one of its extensions, although implementations utilizing EBCDIC are also known).
<errno.h>       For testing error codes reported by library functions.
<fenv.h>    C99 Defines a set of functions for controlling floating-point environment.
<float.h>       Defines macro constants specifying the implementation-specific properties of the floating-point library.
<inttypes.h>    C99 Defines exact width integer types.
<iso646.h>  NA1 Defines several macros that implement alternative ways to express several standard tokens. For programming in ISO 646 variant character sets.
<limits.h>      Defines macro constants specifying the implementation-specific properties of the integer types.
<locale.h>      Defines localization functions.
<math.h>        Defines common mathematical functions.
<setjmp.h>      Declares the macros setjmp and longjmp, which are used for non-local exits.
<signal.h>      Defines signal handling functions.
<stdalign.h>    C11 For querying and specifying the alignment of objects.
<stdarg.h>      For accessing a varying number of arguments passed to functions.
<stdatomic.h>   C11 For atomic operations on data shared between threads.
<stdbool.h> C99 Defines a boolean data type.
<stddef.h>      Defines several useful types and macros.
<stdint.h>  C99 Defines exact width integer types.
<stdio.h>       Defines core input and output functions
<stdlib.h>      Defines numeric conversion functions, pseudo-random numbers generation functions, memory allocation, process control functions
<stdnoreturn.h> C11 For specifying non-returning functions.
<string.h>      Defines string handling functions.
<tgmath.h>  C99 Defines type-generic mathematical functions.
<threads.h> C11 Defines functions for managing multiple Threads as well as mutexes and condition variables.
<time.h>        Defines date and time handling functions
<uchar.h>   C11 Types and functions for manipulating Unicode characters.
<wchar.h>   NA1 Defines wide string handling functions.
<wctype.h>  NA1 Defines set of functions used to classify wide characters by their types or to convert between upper and lower case

POSIX库(标准C库除外)

<aio.h> Asynchronous input and output   Issue 5
<arpa/inet.h>   Functions for manipulating numeric IP addresses (part of Berkeley sockets)  Issue 6
<assert.h>  Verify assumptions   ??
<complex.h> Complex Arithmetic, see C mathematical functions     ??
<cpio.h>    Magic numbers for the cpio archive format   Issue 3
<dirent.h>  Allows the opening and listing of directories   Issue 2
<dlfcn.h>   Dynamic linking Issue 5
<errno.h>   Retrieving Error Number  ??
<fcntl.h>   File opening, locking and other operations  Issue 1
<fenv.h>    Floating-Point Environment (FPE), see C mathematical functions   ??
<float.h>   Floating-point types, see C data types   ??
<fmtmsg.h>  Message display structures  Issue 4
<fnmatch.h> Filename matching   Issue 4
<ftw.h> File tree traversal Issue 1
<glob.h>    Pathname "globbing" (pattern-matching)  Issue 4
<grp.h> User group information and control  Issue 1
<iconv.h>   Codeset conversion facility Issue 4
<inttypes.h>    Fixed sized integer types, see C data types  ??
<iso646.h>  Alternative spellings, see C alternative tokens  ??
<langinfo.h>    Language information constants – builds on C localization functions Issue 2
<libgen.h>  Pathname manipulation   Issue 4
<limits.h>  Implementation-defined constants, see C data types   ??
<locale.h>  Category macros, see C localization functions    ??
<math.h>    Mathematical declarations, see C mathematical functions  ??
<monetary.h>    String formatting of monetary units Issue 4
<mqueue.h>  Message queue   Issue 5
<ndbm.h>    NDBM database operations    Issue 4
<net/if.h>  Listing of local network interfaces Issue 6
<netdb.h>   Translating protocol and host names into numeric addresses (part of Berkeley sockets)   Issue 6
<netinet/in.h>  Defines Internet protocol and address family (part of Berkeley sockets) Issue 6
<netinet/tcp.h> Additional TCP control options (part of Berkeley sockets)   Issue 6
<nl_types.h>    Localization message catalog functions  Issue 2
<poll.h>    Asynchronous file descriptor multiplexing   Issue 4
<pthread.h> Defines an API for creating and manipulating POSIX threads  Issue 5
<pwd.h> passwd (user information) access and control    Issue 1
<regex.h>   Regular expression matching Issue 4
<sched.h>   Execution scheduling    Issue 5
<search.h>  Search tables   Issue 1
<semaphore.h>   POSIX semaphores    Issue 5
<setjmp.h>  Stack environment declarations   ??
<signal.h>  Signals, see C signal handling   ??
<spawn.h>   Process spawning    Issue 6
<stdarg.h>  Handle Variable Argument List    ??
<stdbool.h> Boolean type and values, see C data types    ??
<stddef.h>  Standard type definitions, see C data types  ??
<stdint.h>  Integer types, see C data types  ??
<stdio.h>   Standard buffered input/output, see C file input/output  ??
<stdlib.h>  Standard library definitions, see C standard library     ??
<string.h>  Several String Operations, see C string handling     ??
<strings.h> Case-insensitive string comparisons Issue 4
<stropts.h> Stream manipulation, including ioctl    Issue 4
<sys/ipc.h> Inter-process communication (IPC)   Issue 2
<sys/mman.h>    Memory management, including POSIX shared memory and memory mapped files    Issue 4
<sys/msg.h> POSIX message queues    Issue 2
<sys/resource.h>    Resource usage, priorities, and limiting    Issue 4
<sys/select.h>  Synchronous I/O multiplexing    Issue 6
<sys/sem.h> XSI (SysV style) semaphores Issue 2
<sys/shm.h> XSI (SysV style) shared memory  Issue 2
<sys/socket.h>  Main Berkley sockets header Issue 6
<sys/stat.h>    File information (stat et al.)  Issue 1
<sys/statvfs.h> File System information Issue 4
<sys/time.h>    Time and date functions and structures  Issue 4
<sys/times.h>   File access and modification times  Issue 1
<sys/types.h>   Various data types used elsewhere   Issue 1
<sys/uio.h> Vectored I/O operations Issue 4
<sys/un.h>  Unix domain sockets Issue 6
<sys/utsname.h> Operating system information, including uname   Issue 1
<sys/wait.h>    Status of terminated child processes (see wait) Issue 3
<syslog.h>  System error logging    Issue 4
<tar.h> Magic numbers for the tar archive format    Issue 3
<termios.h> Allows terminal I/O interfaces  Issue 3
<tgmath.h>  Type-Generic Macros, see C mathematical functions    ??
<time.h>    Type-Generic Macros, see C date and time functions   ??
<trace.h>   Tracing of runtime behavior (DEPRECATED)    Issue 6
<ulimit.h>  Resource limiting (DEPRECATED in favor of <sys/resource.h>) Issue 1
<unistd.h>  Various essential POSIX functions and constants Issue 1
<utime.h>   inode access and modification times Issue 3
<utmpx.h>   User accounting database functions  Issue 4
<wchar.h>   Wide-Character Handling, see C string handling   ??
<wctype.h>  Wide-Character Classification and Mapping Utilities, see C character classification  ??
<wordexp.h> Word-expansion like the shell would perform

ANSI C headers

assert.h

#ifdef NDEBUG
#define assert(expr)
#else // _DEBUG
#define assert(expr) \
((expr) \
? (void) (0) \
: __assert_failed(__STRING(expr), __FILE__, __LINE__, __FUNCTION__))
#endif

stddef.h

typedef int wchar_t;
typedef long unsigned int size_t;
typedef long ssize_t;
typedef long int ptrdiff_t;
#ifdef __cplusplus
#define NULL ((void*)0)
#else
#define NULL 0
#endif
typedef decltype(nullptr) nullptr_t; //c++11

stdbool.h

#define bool bool
#define true 1
#define false 0

stdint.h

typedef char int8_t;
typedef unsigned char uint8_t;
typedef short int16_t;
typedef unsigned short uint16_t;
typedef int  int32_t;
typedef unsigned int uint32_t;
typedef long long int64_t;
typedef unsigned long long uint64_t;
#if __WORDSIZE == 64
typedef long int intptr_t;
typedef unsigned long int uintptr_t;
#else
typedef int intptr_t;
typedef unsigned int uintptr_t;
#endif

stdarg.h

va_list
va_start
va_arg
va_end

stdio.h

stdin stdout stderr FILE* char*
scanf printf perror fscanf,fprintf sscanf,sprintf,snprintf
vscanf vprintf vfscanf,vfprintf vsscanf,vsprintf,vsnprintf
getchar putchar getc,putc,fgetc,fputc
gets puts fgets,fputs
fopen
fclose
fread
fwrite
fseek
ftellfflush
freopen
fgetpos
fsetpos
rewindremove
rename

stdlib.h

srandom
randomgetenv
putenvabort
exit
atexitsystemmalloc
calloc
ralloc
freeatoi
atol
atofstrtol
strtoll
strtoul
strtoull
strtof
strtodabs
divmblen
mbtowc
wctomb
mbstowcs
wcstombs

string.h

memset
memcpy
memcmp
memmove
memchrstrlen
strcpy
strncpy
strcat
strncat
strcmp
strncmpstrchr
strrchr
strstr
strcspn
strspn
strpbrk
strtokstrerror

time.h

clocktime
localtime
gmtimemktime
ctime
asctime
strftime

math.h

sin
cos
tan
asin
acos
atansqrt
pow
exp
logceil
floor
round
truncNAN
HUGE_VAL
INFINITE

errno.h

#ifndef errno
extern int errno;
#endif

ctype.h

#define isascii(c) (((c) & ~0x7f) == 0)
#define toascii(c) ((c) & 0x7f)
extern int isctype(int c,int mask);
extern int tolower(int c);
extern int toupper(int c);#define ISBIT(b)   (1 << (b))
#define isxxxxx(c) isctype(c,ISBIT(b))isalnum
isalpha
iscntrl
isdigit
isxdigit
isgraph
ispunct
isspace
isblank
isprint
isupper
islower

wctype.h

wchar_t ctype.h

wchar.h

wchar_t stdio.h

uchar.h

c16rtomb
c32rtomb
mbtoc16r
mbtoc32r

ANSI C标准库和POSIX库相关推荐

  1. ansi c标准_C语言为什么需要有标准库

    标准库是 ANSI C 语言标准的一个重要组成部分.在 ANSI C 标准之前,不同的 C 系统都提供了库,其中包含许多常用功能函数,以及相关的类型与变量定义.随着发展,不同 C 系统所提供的库之间的 ...

  2. 【C语言】标准库(头文件、静态库、动态库),windows与Linux平台下的常用C语言标准库

    一.Introduction 1.1 C语言标准库 1.2 历代C语言标准 1.3 主流C语言编译器 二.C语言标准库 2.1 常用标准头文件 2.2 常用标准静态库 三.windows平台 四.Li ...

  3. [转载] JAVA从菜鸟【入门】到新手【实习】一一一一Python 内置函数,标准库与第三方库(拓展库),常用框架

    参考链接: copyreg -注册pickle支持的函数 掌握了python的基本语法和面向对象的设计思想后是学习了程序设计的"使用"规则, 具体实现和调用要依赖"标准库 ...

  4. python第三方库排行-140种Python标准库、第三方库和外部工具

    导读:Python数据工具箱涵盖从数据源到数据可视化的完整流程中涉及到的常用库.函数和外部工具.其中既有Python内置函数和标准库,又有第三方库和工具. 这些库可用于文件读写.网络抓取和解析.数据连 ...

  5. python第三方库大全win-Python标准库、第三方库和外部工具汇总

    导读:Python数据工具箱涵盖从数据源到数据可视化的完整流程中涉及到的常用库.函数和外部工具.其中既有Python内置函数和标准库,又有第三方库和工具. 这些库可用于文件读写.网络抓取和解析.数据连 ...

  6. python标准库和第三方库_python常用标准库及三方库

    python 常用标准库及三方库 作者: yegle 链接: https://www.zhihu.com/question/20501628/answer/153211 84 著作权归作者所有.商业转 ...

  7. time库是python中处理时间的标准库_python语言time库和datetime库基本使用详解

    今天是边复习边创作博客的第三天,我今年大二,我们专业开的有这门课程,因为喜欢所以更加认真学习,本以为没人看呢,看了后台浏览量让我更加认真创作,这篇博客花了2个半小时的时间,结合自己所学,所思,所想写作 ...

  8. Linux 标准I/O函数库

    标准I/O函数库: C标准库提供了文件的标准 I/O 函数库,相比前述的系统调用,主要差别是实现了跨平台的用户态缓冲的解决方案.标准I/O库使 用简单,与系统调用I/O相似,也包括打开.读写.关闭这些 ...

  9. 140种Python标准库、第三方库和外部工具都有了

    导读:Python数据工具箱涵盖从数据源到数据可视化的完整流程中涉及到的常用库.函数和外部工具.其中既有Python内置函数和标准库,又有第三方库和工具. 这些库可用于文件读写.网络抓取和解析.数据连 ...

最新文章

  1. Ubuntu10.04安装Flash插件
  2. python gil 解除_python GIL的解读
  3. 有关Nodejs的一些插件介绍
  4. 有道云笔记到简书的迁移工具
  5. libjpeg(1)
  6. 同步 Visual Studio Code 设置
  7. 当select查询为空
  8. css3中的文字效果
  9. python自动化,自动登录并且添加一个门店
  10. 详解高斯过程回归和核贝叶斯线性回归
  11. “堆排序算法”(C语言实现)
  12. 在Linux上安装吉大校园客户端
  13. 如何通过手机拍照生成三维模型
  14. SOFTICE 初使用
  15. easyui-filebox清空方法扩展自TextBox
  16. 电脑重装系统后当前安全设置不允许下载该文件
  17. 什么是 IP 欺骗?
  18. 互联网晚报 | 9月10日 星期五 | 美团启动数字人民币低碳出行试点;vivo X70系列正式发布;旷视科技科创板IPO过会...
  19. 前端大串讲,狂神,狂神和飞哥
  20. redis哨兵模式出现connected_slaves:0解决办法

热门文章

  1. 如何免费下载DJKK的音乐
  2. Deformable Convolutional Networks论文翻译——中文版
  3. 史上最全Java学习路线
  4. python柱状图标注均值标准差_OpenCV Python 图像矩阵的均值和标准差
  5. 涨粉29w,获赞超百万,小红书近期创作趋势是什么?
  6. hark others by kalilinux
  7. 心率检测实现报告(一)
  8. codeforces 1520E Arranging The Sheep
  9. xshell最多支持4个_3分钟苹果发布会:iPhone12支持5G、3个尺寸4种型号
  10. matlab解坐标方程,matlab程序(解泊松方程)