- All functions in my libft.
- My get_next_line function (Note that this version can handle more than one file descriptor at a time).
- My own version of printf.
- ft_isstr: A function that applies a function that takes an integer (for example isdigit) to an entire string and returns 1 if the function returns 1 for the entire string.
- Terminal colours: Functions to change the colour your programs output in the terminal.
- An implementation of the abs() function.
- My version of atof().
- A version of fprintf, works just like my ft_printf except taking a file descriptor to print to.
- Clone the repository:
git clone https://github.com/itseugen/c_library libft
- Enter the directory and build the library:
cd libft
make
Optional: Clean object files:
make clean
- Include the headerfile in your function:
#include "filepath/libft.h"
Example: If you clone the libft inside the repository you are working on it would look as follows:
#include "libft/libft.h"
- To compile correctly just add the "libft.a" in your compiler call:
gcc myfile.c libft.a
I'm planning on updating this repository with new functions in the future. I might also update some existing functions to fix bugs, add features or make better error handling, although unlikely a new version of this library might not work with code built for an older version.
This project is part of my studies at 42 Heilbronn