What is the difference between glibc and libc? Linux general technology-Linux programming and kernel information. The following is a detailed description. Glibc and libc are both C function libraries in Linux. What is the difference?
I was confused when I saw many library functions in Linux. In fact, they have rules to follow.
Libc is the ansi c function library in Linux;
Glibc is the gun c function library in Linux;
What is the difference between ansi c and gnu c?
Ansi c is a basic C language function library, including the most basic C language library function. This library can be divided into 15 parts based on the header file, including: character type ( ), Error code ( ), Floating point constant ( ), Mathematical constants ( ), Standard definition ( ), Standard I/O ( ), Tool functions ( ), String operations ( ), Time, and date ( ), Variable parameter table ( ), Signal ( ), Non-local jump ( ), Local information ( ), Program assertions () and so on. This is available in other C language ides.
The gnu c function library is similar to a third-party plug-in. Because Linux is written in C language, some Linux operations are implemented in C language, therefore, the GNU Organization developed a C language library for us to better use the C language to develop programs based on the Linux operating system. In fact, we can understand it as similar to Qt is a C ++ third-party function library.
However, different Linux distributions have different processing methods for these two function libraries. Some may already be integrated into the same library. For example, I only use glibc for Ubuntu.
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