Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 309
David Johns Avatar asked Dec 09 '12 09:12

David Johns


People also ask

Where is the Stdio h file located?

h file is in /usr/include . Other systems may put it elsewhere, and in all cases it's likely that stdio. h pulls in other files.

Which library contains Stdio H?

C Library - <stdio. h>

Where are Visual Studio header files stored?

You can see an example of a header-units. json file under the installation directory for Visual Studio. For example, %ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.30. 30705\include\header-units.


1 Answers

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.

like image 189
James McNellis Avatar answered Nov 15 '22 15:11

James McNellis