C
Casanova
Hello!!!
I have been using C for a very short while. I am used to macros in C,
but while i was reading the code for LittleOS (an open source OS), i
came across a type of macro wherein no value was given to substitute
the text. What does this imply? The code i came across is as follows:
#ifndef _TIME_H
#define _TIME_H
struct time {
int sec, min, hour;
};
struct date {
int dayofweek, day, month, year;
};
void gettime(struct time*);
void getdate(struct date*);
#endif
what does this do? Please Help
Casanova...
I have been using C for a very short while. I am used to macros in C,
but while i was reading the code for LittleOS (an open source OS), i
came across a type of macro wherein no value was given to substitute
the text. What does this imply? The code i came across is as follows:
#ifndef _TIME_H
#define _TIME_H
struct time {
int sec, min, hour;
};
struct date {
int dayofweek, day, month, year;
};
void gettime(struct time*);
void getdate(struct date*);
#endif
what does this do? Please Help
Casanova...