在哪里可以找到string.cpp的源 [英] Where can I find source of string.cpp

查看:145
本文介绍了在哪里可以找到string.cpp的源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要访问 string.h 的源文件。我的意思是具有在 string.h 中可用的所有函数的定义的文件。

I want to access source file of string.h. I mean the file which have definitions of all functions available in string.h.

例如 strcpy() string.h ;

For example strcpy() is a function in string.h; where can I get its definition, as string.h only gives prototypes of functions?

推荐答案

您没有指定开发人员工具 - 这个答案是在Windows上的Visual Studio 2008。可以在下面找到CRT源代码:

You didn't specify a developer tool - this answer is for Visual Studio 2008 on Windows. CRT sources can be found under:

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\crt\src\

如果安装在默认位置。对于Visual Studio的其他版本,只需将 9.0 部分替换为 10.0 (VS 2010)或 11.0 (VS 2012)。

if it's installed at the default location. For other versions of Visual Studio, just replace the 9.0 part with 10.0 (VS 2010) or 11.0 (VS 2012).

你不会找到一个string.c文件 - 几个函数在自己的 .c 文件(其中一些在程序集中实现)。

You won't find a single string.c file - several functions are implemented in their own .c file (and some of them are implemented in assembly).

源位置和可用性因每个工具而异/操作系统。

The source location and availability will vary for each tool / operating system.

这篇关于在哪里可以找到string.cpp的源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆