I would like to know how can I include a directory containig several headers in a C program instead of including all the headers one by one.
3 Answers
There's no such facility in C. Create a master header file that includes everything that's in that directory, and have your clients include that.
A side-note: it's always better to know what exactly you are #include-ing, i.e. hand-pick needed header files, instead of doing this thing wholesale to avoid name clashes, unexpected macro expansion, circular dependencies, and what not.