syedshan
Advanced Member level 1
- Joined
- Feb 27, 2012
- Messages
- 463
- Helped
- 27
- Reputation
- 54
- Reaction score
- 26
- Trophy points
- 1,308
- Location
- Jeonju, South Korea
- Activity points
- 5,134
Hello all,
I understand and sometimes use #ifndef-#define pair when I have to declare directives.
But in some reference designs I have seen the use such that I cannot udnerstand why is it used.
Once such example is the following header file, named UTILS.H, the file contains functions and
pre-processor directives, but it is started as...
my question is why is #ifndef use here and also what is _UTILS_H_ used here.
It can also be started directly from #include <stdio.h>
Bests
Shan
I understand and sometimes use #ifndef-#define pair when I have to declare directives.
But in some reference designs I have seen the use such that I cannot udnerstand why is it used.
Once such example is the following header file, named UTILS.H, the file contains functions and
pre-processor directives, but it is started as...
Code:
#ifndef _UTILS_H_
#define UTILS_H_
#include <stdio.h>
...
...
...
#endif
my question is why is #ifndef use here and also what is _UTILS_H_ used here.
It can also be started directly from #include <stdio.h>
Bests
Shan