I am learning from APUE3e
#include "apue.h"
#include <dirent.h>
int main(int argc, char *argv[])
{
DIR *dp;
struct dirent *dirp;
....
In the header, import a user-definded module "apue.h"
. the program run correctly after compiled.
The apue.h
is placed in /Library/Developer/CommandLineTools/usr/include
,
What confuse me is that /Library/Developer/CommandLineTools/usr/include
is not in the $PATH but could be retrieved by the program globally.
$ echo $PATH | grep include
#does not return anything.
How could the program get it done?