What is a Library in C?

Libraries are known as certain types of files that we can import or include in our program. These files contain the specifications of different functionalities already built and usable that we can add to our program, such as reading from the keyboard or showing something on the screen, among many others.

What is a Static library?

How to create a Static library?

In order to put our code in a library, we need to organize it as follows:

How to use the Static library?

We will use an example to explain this.

#include "holberton.h"

int main(void)
_puts("Programming is my passion - Lex");
return (0);

Bachelor Industrial Engineering