C Standard Library - Reference Manual | Tutorial
Tutorial -- Learning not just technology, but dreams!
- Home
- HTML
- JavaScript
- CSS
- Vue
- React
- Python3
- Java
- C
- C++
- C#
- AI
- Go
- SQL
- Linux
- VS Code
- Bootstrap
- Git
- Local Bookmarks
C Tutorial
C Language Tutorial C Introduction C Environment Setup C VScode C Program Structure C Basic Syntax C Data Types C Variables C Constants C Storage Classes C Operators C Decision Making C Loops C Functions C Scope Rules C Arrays C enum (Enumeration) C Pointers C Function Pointers and Callback Functions C Strings C Structures C Unions C Bit Fields C typedef C Input & Output C File I/O C Preprocessors C Header Files C Type Casting C Error Handling C Recursion C Variable Arguments C Memory Management C Undefined Behavior C Command Line Arguments C Safe Functions C Sorting Algorithms C Project Structure C Examples C Classic 100 Examples C Quiz
C Standard Library
C Standard Library - Reference Manual <a href="#" title="C Standard Library - ">C Standard Library - <a href="#" title="C Standard Library - ">C Standard Library - <a href="#" title="C Standard Library - ">C Standard Library - <a href="#" title="C Standard Library - ">C Standard Library - <a href="#" title="C Standard Library - ">C Standard Library - <a href="#" title="C Standard Library - ">C Standard Library - <a href="#" title="C Standard Library -
<a href="#" title="C Standard Library β ">C Standard Library β
Deep Dive
- Web Service
- Programming
- Computer Science
- Scripting Languages
- Development Tools
- Programming Languages
- Scripts
- Web Services
- Software
- Web Design & Development
C Standard Library - Reference Manual
Below is a detailed list of C standard library header files and their functional descriptions:
C is a general-purpose, procedural computer programming language. In 1972, Dennis Ritchie designed and developed the C language at Bell Telephone Laboratories for the purpose of porting and developing the UNIX operating system.
C is a widely used computer language, as popular as the Java programming language, and both are widely used among modern software programmers.
The C Standard Library contains a set of header files that provide many functions and macros for handling common programming tasks such as input/output, string manipulation, mathematical calculations, and memory management.
Who is this tutorial suitable for?
The C Standard Library can serve as a reference manual for C programmers, who can consult this manual when developing projects related to system programming. It helps them at every step of system-related tasks. We explain all C functions in an easy-to-understand manner, and you can directly copy and use these examples in your projects.
Prerequisites for reading this tutorial
A basic understanding of the C language will help you understand the built-in C functions covered in this standard library.
Compiling/Executing C Programs
If you want to learn C programming on a Linux server but don't have the relevant environment configured, you can visit the C Online Compiler. You just need a simple click to experience real programming on a high-end server. This is a completely free online tool.
Standard Library
| Header File | Functional Description |
|---|---|
| <stdio.h> | Standard Input/Output Library, contains functions like printf, scanf, fgets, fputs, etc. |
| <stdlib.h> | Standard Library Functions, contains memory allocation, program control, conversion functions, etc., such as malloc, free, exit, atoi, rand, etc. |
| <string.h> | String Manipulation Functions, such as strlen, strcpy, strcat, strcmp, etc. |
| <math.h> | Mathematical Function Library, contains various mathematical operation functions, such as sin, cos, tan, exp, log, sqrt, etc. |
| <time.h> | Time and Date Functions, such as time, clock, difftime, strftime, etc. |
| <ctype.h> | Character Handling Functions, such as isalpha, isdigit, isspace, toupper, tolower, etc. |
| <limits.h> | Defines limit values for various types, such as INT_MAX, CHAR_MIN, LONG_MAX, etc. |
| <float.h> | Defines limit values for floating-point types, such as FLT_MAX, DBL_MIN, etc. |
| <assert.h> | Contains the macro assert, used for assertion checking during debugging. |
| <errno.h> | Defines the error code variable errno and related macros, used for representing and handling errors. |
| <stddef.h> | Defines some common types and macros, such as size_t, ptrdiff_t, NULL, etc. |
| <signal.h> | Defines functions and macros for handling signals, such as signal, raise, etc. |
| <setjmp.h> | Provides macros and functions for non-local jumps, such as setjmp, longjmp, etc. |
| <locale.h> | Defines functions and macros related to localization, such as setlocale, localeconv, etc. |
| <stdarg.h> | Provides macros for handling variable argument functions, such as va_start, va_arg, va_end, etc. |
| <stdbool.h> | Defines the boolean type and values true and false. |
| <stdint.h> | Defines exact-width integer types, such as int8_t, uint16_t, etc. |
| <inttypes.h> | Provides formatted output macros and functions related to integer types. |
| <complex.h> | Provides functions and macros for complex number operations, such as cabs, carg, etc. |
| <tgmath.h> | Provides macros for generic math functions to simplify mathematical operations on different data types. |
| <fenv.h> | Provides control over the floating-point environment, such as rounding modes and exception states. |
YouTip