Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are the C header files in Windows?

Tags:

I'm new to Windows development, having messed around in Linux for a while. I need to access console functions and am having trouble getting a comprehensive list of console text attributes off the web. I would like to read wincon.h and windows.h to get the info, but I can't figure out how to get at them. Help please!

like image 849
Scribble Master Avatar asked Jun 25 '10 17:06

Scribble Master


People also ask

Where are C libraries stored?

The C standard library itself is stored in '/usr/lib/libc. a' and contains functions specified in the ANSI/ISO C standard, such as 'printf' ---this library is linked by default for every C program.

What is the header file of C?

A header file is a file with extension . h which contains C function declarations and macro definitions to be shared between several source files. There are two types of header files: the files that the programmer writes and the files that comes with your compiler.


2 Answers

Windows does not come with these by default. If you are looking for them, you need to install the Windows SDK and dig around in the %PROGRAMFILES%\Microsoft SDKs\Windows directory.

like image 161
Billy ONeal Avatar answered Sep 28 '22 19:09

Billy ONeal


They're normally stored along with the other SDK headers. Assuming you're using Visual Studio, the easy to look at them is to create a file, add a line to #include the file you care about, right click it, and click on the open document <whatever.h> line in the pop-up menu.

like image 36
Jerry Coffin Avatar answered Sep 28 '22 21:09

Jerry Coffin