您应该查看 glibc 而不是gcc的原因是: GNU C库在GNU系统和大多数具有Linux内核的系统中用作 the C库.Can anyone point me to the definition of strlen() in GCC? I've been grepping release 4.4.2 for about a half hour now (while Googling like crazy) and I can't seem to find where strlen() is actually implemented. 解决方案 You should be looking in glibc, not GCC -- it seems to be defined in strlen.c -- here's a link to strlen.c for glibc version 2.7... And here is a link to the glibc SVN repository online for strlen.c.The reason you should be looking at glibc and not gcc is: The GNU C library is used as the C library in the GNU system and most systems with the Linux kernel. 这篇关于在GCC中,strlen()的实现在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-29 14:30
查看更多