C language 2

Source: Internet
Author: User
Tags bit set unix domain socket

Continue to write some content about the header file of the C language. Some standard header files of the C language can also be written and used. This will help you write programs in the future.

Standard C header files

Header files defined in iso c (24 items)

<Assert. h> the validators assert that <complex. h> supports the plural arithmetic operation <ctype. h> character type

<Errno. h> Error Code <fenv. h> floating point environment <float. h> floating point constant

<Inttypes. h> integer format conversion <iso646.h> substitutes the relational operator macro <limits. h> to implement Constants

<Locale. h> local class <math. h> mathematical constant <setjmp. h> non-local goto

<Signal. h> signal <stdarg. h> variable parameter table <stdbool. h> boolean type and value

<Stddef. h> standard definition <stdint. h> integer <stdio. h> standard I/O Library

<Stdlib. h> practical library functions <string. h> string Operations <tgmath. h> General Mathematical macros

<Time. h> time and date <wchar. h> wide characters support <wctype. h> wide character classification and ing

POSIX standard defined mandatory header files (26 items)

<Dirent. h> directory item <fcntl. h> file Control <fnmatch. h> file name matching type

<Glob. h> path name pattern matching type <grp. h> group file <netdb. h> Network Database Operations

<Pwd. h> Password File <regex. h> Regular Expression <tar. h> tar archive Value

<Termios. h> terminal I/O <unistd. h> symbolic constant <utime. h> file time

<Wordexp. h> word extension type <arpa/inet. h> Internet definition <net/if. h> socket local Interface

<Netinet/in. h> memory management statement of the Internet address family <netinet/tcp. h> Transport Control Protocol <sys/mman. h>

<Sys/select. h> select function <sys/socket. h> socket interface <sys/stat. h> File status

<Sys/times. h> process time <sys/types. h> Basic System Data Type <sys/un. h> UNIX domain socket Definition

<Sys/utsname. h> system name <sys/wait. h> Process Control

POSIX standard-defined XSI extension header file (26 items)

<Cpio. h> cpio archive value <dlfcn. h> dynamic link <fmtmsg. h> Message Display Structure

<Ftw. h> file tree roaming <iconv. h> code set conversion utility <langinfo. h> Language Information constant

<Libgen. h> schema matching function definition <monetary. h> currency type <ndbm. h> database operations

<Nl_types.h> message Category <poll. h> poll function <search. h> search table

<Strings. h> string operation <syslog. h> System Error Log Record <ucontext. h> User Context

<Ulimit. h> User restrictions <utmpx. h> User Account database <sys/ipc. h> IPC

<Sys/msg. h> Message Queue <sys/resource. h> resource operation <sys/sem. h> semaphore

<Sys/shm. h> shared storage <sys/statvfs. h> File System Information <sys/time. h> time type

<Sys/timeb. h> additional time <sys/uio. h> vector I/O operation

POSIX standard-defined optional Header files (8 items)

<Aio. h> asynchronous I/O <mqueue. h> Message Queue <pthread. h> thread

<Sched. h> run the <semaphore. h> semaphores <spawn. h> real-time spawn Interface

<Stropts. h> xsi streams interface <trace. h> time tracking


54 Standard C ++ header files, 16 of which are used to build STL, and 3 are not mandatory)

<Algorithm> General STL algorithm <bitset> STL bit set container <cassert> is used to execute assertions when the program is running.

<Cctype> Character Processing <cerrno> Error Code <cfloat> is used to test floating point type attributes.

<Ciso646> ISO646 Variant Character Set <climits> test Integer type attribute <clocale> localization function

<Cmath> mathematical function <complex> plural class <csetjmp> executes non-Internal goto statements

The <csignal> signal <cstdarg> function for changing the number of access parameters <cstddef> is used to define practical types and macros.

<Cstdio> input/output <cstdlib> miscellaneous functions and memory allocation <cstring> string

<Ctime> time <cwchar> wide character processing and input/output <cwctype> wide character Classification

<Deque> STL double-end queue container <exception> exception handling class <fstream> file stream

<Functional> STL function object <iomanip> parameterized input/output <ios> Basic Input/Output support

<Iosfwd> input/output pre-declaration <iostream> Data Stream Input/Output <istream> basic input stream

<Iterator> traversal sequence class <limits> maximum constants of various data types <list> STL linear list container

<Locale> supports <map> STL ing container <memory> dedicated memory distributor

<New> basic memory allocation and release <numeric> General Digital Operations <ostream> Basic output stream

<Queue> STL queue container <set> STL collection container <sstream> string-based stream

<Stack> STL stack container <stdexcept> standard exception class <streambuf> buffer class of iostream

<String> stream class of the string type <strstream> non-Memory Character Sequence <typeinfo> runtime type identifier

<Utility> STL common template class <valarray> supports value array classes and template classes <vector> STL dynamic array containers

The standard C ++ header file (3) is not required

<Hash_map>


Summary of some C Language header files is helpful for compiling. When you are fine, you can also look at the C language programming tutorial, read more and summarize, No matter what content you learn will be helpful.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.