Suppose I have a program
main.c
#include "file.h"
#include <stdio.h>
int main()
{
//Code to found the included path
}
gcc -I /local main.c
How can I found the included path of header file inside this program Now their can be 3 included path
- current directory
- ENV set in the Path VARIABLE or other
- Directory included with -I option
Please provide a way to get this inside the same program.