Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

function of header file

Status
Not open for further replies.

a_tek7

Banned
Joined
Feb 9, 2006
Messages
161
Helped
11
Reputation
22
Reaction score
2
Trophy points
1,298
Location
Bandar Abbas
Activity points
0
Hi all.
I want to know that how I can see the code of each function of header files ,for example printf ?Is it possible?the codes of each function.
tanx
 

I assume you are talking about C.

If your compiler is open-source, such as GCC, then you can download all the source code from the compiler's distribution site.
If your compiler is a commercial product, then the company probably won't give you the source code.
 

Sure! Window$ or Linux user? Well.... assuming C code, ok?

Each function is "stored" inside xxxxx.h files, inside include directories. If you´re in linux, open a command line prompt and type, for exemple:

$> locate stdio.h

Try to view this file using any raw text editor, like vim, mcedit and so on. Then, you can find printf function and many others!

In window$, inside your compiler´s directory, find an include directory and take a look inside stdio.h
Good ideia to take a look at math.h and see how things work there!

See you!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top