Quote:
How do I create own header files in C language
Exactly the same as a .c file.
A header file is here to avoid typing again and again structures declarations and functions prototypes in every .c files that use them.
Imagine: you are on a big project, you have built a bunch of functions that are reused everywhere, you can type the structures declarations and functions prototypes in every .c file.
Then you need to change the structures, in this case you need to edit every single .c file that use it. It is tedious and any error will lead to weird behavior and very difficult to spot bugs.
If you use a .h header file, you have 1 place to change for the whole project.