How do you use non standard headers in C?

139 Views Asked by At

If I want to use graphics.h or conio.h with C, how do I even install it and get it to work?

1

There are 1 best solutions below

4
Rodrigo On

You must have an archive of the respectively library that you want in your directory for libraries.

Then you will just import them typing, for example (the most common library in C):

#include <stdio.h>

So, do the following

  • Add library archive to the libraries directory
  • import them typing #include <name-of-the-library .h>