Hello everyone.
I need some help on understanding how include guard names work. I know that C is case-sensitive so every name is different from another. I've seen that when people define their own header files, they put include guards that are always the name of their header in capital letters.
Let's say i have a header file called mytest.h which has some code in it, for example:
What will happen if i rename my file from mytest.h --> Mytest.h or MyTeSt.h (generally something different). And let's say if i indeed rename my file to Mytest.h, then the new guards will still be the same as before or something else?
I need some help on understanding how include guard names work. I know that C is case-sensitive so every name is different from another. I've seen that when people define their own header files, they put include guards that are always the name of their header in capital letters.
Let's say i have a header file called mytest.h which has some code in it, for example:
Code
#ifndef MYTEST_H
#define MYTEST_H
/* declerations
go
here
*/
#endif /* MYTEST_H */What will happen if i rename my file from mytest.h --> Mytest.h or MyTeSt.h (generally something different). And let's say if i indeed rename my file to Mytest.h, then the new guards will still be the same as before or something else?

