在哪里可以找到所有C标准库的源代码?

时间:2022-06-15 15:05:03

I'm looking for the whole source code of all the C standard libraries. That said, I'm looking for the source code of stdio.h, stdlib.h, string.h, math.h, etc... I would like to see how they were created. I think that it depends from platform to platform, but Linux or Windows one will be welcomed.

我正在寻找所有C标准库的全部源代码。也就是说,我正在寻找stdio的源代码。h,stdlib。h,字符串。h,数学。h,等等……我想看看它们是如何被创造出来的。我认为这取决于不同的平台,但Linux或Windows one将受到欢迎。

4 个解决方案

#1


7  

PJ Plauger wrote a book about the standard C library. Includes references from the (now dated) standard, and source code.

普劳杰写了一本关于标准C库的书。包括来自(现在已过时的)标准和源代码的引用。

#2


7  

If you want the actual implementations, as everyone else has assumed you don't, many Linux distributions currently use glibc to implement the C standard library. Common alternatives include musl libc, diet libc, uClibc, and Bionic

如果您想要实际的实现,就像其他人假定的那样,许多Linux发行版目前使用glibc实现C标准库。常见的替代方法包括贻贝、饮食、大肠杆菌和仿生

#3


3  

Microsoft Visual Studio generally has the system headers under <InstallDir>\VC\include, and the source, if installed, is under <InstallDir>\VC\crt\src.

Microsoft Visual Studio通常有 \VC\include >下的系统标题,如果安装了,源文件在 \VC\crt\src下。

#4


0  

Whether its installed with an IDE or you have installed explicitly, you have to look in the directory "Include" in respective location.

无论它是用IDE安装的,还是显式安装的,都必须在相应的位置查找目录“Include”。

Ex: I use MinGW. So, I would go to

我使用MinGW。我要去

c:/MinGW/include to find those header files. Similarly, for an IDE (say Dev-cpp), you need to go to c:/dev-cpp/include.

c:/MinGW/include:查找头文件。类似地,对于IDE(比如Dev-cpp),您需要转到c:/ Dev-cpp /include。

#1


7  

PJ Plauger wrote a book about the standard C library. Includes references from the (now dated) standard, and source code.

普劳杰写了一本关于标准C库的书。包括来自(现在已过时的)标准和源代码的引用。

#2


7  

If you want the actual implementations, as everyone else has assumed you don't, many Linux distributions currently use glibc to implement the C standard library. Common alternatives include musl libc, diet libc, uClibc, and Bionic

如果您想要实际的实现,就像其他人假定的那样,许多Linux发行版目前使用glibc实现C标准库。常见的替代方法包括贻贝、饮食、大肠杆菌和仿生

#3


3  

Microsoft Visual Studio generally has the system headers under <InstallDir>\VC\include, and the source, if installed, is under <InstallDir>\VC\crt\src.

Microsoft Visual Studio通常有 \VC\include >下的系统标题,如果安装了,源文件在 \VC\crt\src下。

#4


0  

Whether its installed with an IDE or you have installed explicitly, you have to look in the directory "Include" in respective location.

无论它是用IDE安装的,还是显式安装的,都必须在相应的位置查找目录“Include”。

Ex: I use MinGW. So, I would go to

我使用MinGW。我要去

c:/MinGW/include to find those header files. Similarly, for an IDE (say Dev-cpp), you need to go to c:/dev-cpp/include.

c:/MinGW/include:查找头文件。类似地,对于IDE(比如Dev-cpp),您需要转到c:/ Dev-cpp /include。