user3746195
user3746195

Reputation: 346

C Programming in Visual Studio - Go To Definition Descriptions

I'm trying to find C function descriptions or definition bodies using Visual Studio. When I go to definition, it takes me to the header declaration which isn't very useful. Sure I can see the signature but that's not much. If I go to the definition in the header file, it doesn't take me to the source code where the comments/body may be. Anyone know how to get more info within VS?

Before GoTo

enter image description here

Upvotes: 7

Views: 596

Answers (2)

Weather Vane
Weather Vane

Reputation: 34583

There is an index to a list of detailed function descriptions, discussion, and in some cases example code in the Microsoft alphabetical function reference.

This is surely of much more practical use than looking at the source code to find out what the library functions do.

Upvotes: 2

Sourabh Choure
Sourabh Choure

Reputation: 733

No, you cannot get the source code directly from your system/PC because the library files are first compiled and then stored as .a(Unix) or .lib(Windows) static files / .so(Unix) or .dll(Windows) dynamic files.
Note: Similar answer is mentioned in the comment section as well by others.

However, you can download the source codes of various implementations. For starter, you can go to GLIBC and download the source code from there. Instructions to download are mentioned on the website itself.

Upvotes: 3

Related Questions