Defining a path using #define in C
I want to define a path like this:
This PATH is the directory that contains the files foo1, foo2, foo3, ... foo115.
How can I use this #define in an "open" call to open foo1, foo2, ... foo115?
I want to basically do this with a directive:
fd = open("/abc/xyz/lmn/foo1", O_RDONLY);
source to share