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.

How to create header file having variables and functions(C)?

Status
Not open for further replies.

london

Member level 4
Joined
Jun 30, 2006
Messages
79
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,945
murtuza marketwala

Pls Expalain me how to create header file having globel variables and functions. ie: what is the commands need to use. In which time #ifdef use.
 

C Language

Read a tutorial or book on C. I'd read "C Programming" by Kernighan and Ritchie. This book is very good and easy to understand.

-jonathan
 

Re: C Language

As regarding the header file you can simlpy write it in any c file then give that header file .h extension.This header file you can you can use in any c file by using the #include<> statement.

In case of #ifdef you have to define a macro first.After defining the macro where ever you are using the #ifdef you have to mention the macro name.Its as simple as that.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top