I have a main directory A with two sub directories B and C.
A
B
C
Directory B contains a header file structures.c
structures.c
If you want to use the command line argument then you can give gcc -idirafter ../b/ main.c
gcc -idirafter ../b/ main.c
then you don't have to do any thing inside your program.