的C / C ++函数的源$ C ​​$ C

问题描述:

我想看看不同的C / C ++函数的实现(也就是像strcpy,stcmp,的strstr)。这将帮助我在C / C知道良好的编码习惯++。你可以让我知道我在哪里可以找到它?

I wanted to have a look at the implementation of different C/C++ functions (like strcpy, stcmp, strstr). This will help me in knowing good coding practices in c/c++. Could you let me know where can I find it?

感谢。

您可以检查出的的glibc 副本,这将有源$ C ​​$ C在C标准库中的所有C函数。这应该是一个很好的起点。

You could check out a copy of glibc, which will have the source code for all C functions in the C standard library. That should be a good starting place.