David Johns
David Johns

Reputation: 1231

Where can I find the implementation of stdio.h in Visual Studio?

I could find stdio.h header file easily through search in Windows Explorer, but couldn't find its implementation file like stdio.lib(?). Where can I find it?

Additionally, I can't find Windows.h through search in Windows Explorer, although I can compile source code with Windows.h included.

Is there anybody to explain about this?

Upvotes: 10

Views: 33632

Answers (3)

frogred8
frogred8

Reputation: 1

Since 2015, you have to install "Universal CRT SDK". Then you can find the code from C:\Program Files (x86)\Windows Kits\10 directory.

You can see here from more details. https://devblogs.microsoft.com/cppblog/introducing-the-universal-crt/

Upvotes: 0

Nianliang
Nianliang

Reputation: 3066

Based on accepted answer. For VC++6, it typically locates on:

C:\Program Files (x86)\Microsoft Visual Studio\VC98\Lib\MSVCRT.LIB

Verify it by opening that file with Notepad, and search '_printf'.

Upvotes: 0

James McNellis
James McNellis

Reputation: 355049

The sources for the CRT (C Runtime) are included in the Visual Studio install directory, under VC\crt\src. There are many files; you'll need to find the one that defines the functionality in which you are interested.

The Windows headers (including Windows.h) are included in the Windows SDK, in which there is an Include directory which contains the headers. Where exactly these files are located on your computer depends entirely on where you installed the Windows SDK.

Upvotes: 6

Related Questions