C
Chandrashekar Tippur
All,
We want to associate a argument with a corresponding entry in header
file. How do we do this?
The argument is defined in a header file. We want to extract the value
of the #define variable.
For example,
________________________________________________________________________________
myheader.h
-----------
#define VARIABLE 10
________________________________________________________________________________
Checkheader.c
________________________________________________________________________________
#include myheader.h
int main(int argv, char * argc){
?????????
}
________________________________________________________________________________
We should be able to run Checkheader VARIABLE and it should return 10.
Thanks in advance,
Shekar
We want to associate a argument with a corresponding entry in header
file. How do we do this?
The argument is defined in a header file. We want to extract the value
of the #define variable.
For example,
________________________________________________________________________________
myheader.h
-----------
#define VARIABLE 10
________________________________________________________________________________
Checkheader.c
________________________________________________________________________________
#include myheader.h
int main(int argv, char * argc){
?????????
}
________________________________________________________________________________
We should be able to run Checkheader VARIABLE and it should return 10.
Thanks in advance,
Shekar