Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

49 Commits

Repository files navigation

Project header logo

Description

Libft is a 42 project. The goal of this project is to create a static library (c library) that will be used during the 42 course. Libft is meant to be similar to libc library, where many different type of function are included to help with other projects. To know more about libftapi refer to the wiki section.

Build the library

Libft is a static C library. A makefile is included to build the project. The follwing recipe can be used:

recipeDescription
allCreates the library
cleanRemove all generated object files
fcleanCalls the clean recipe and remove the library file
reCalls the fclean recipe and all recipe (recompile the library

Once the compilation is finished a file called libft.a will be created in the directory lib

Header files.

Current version of libft contains function from following libraries and each of them has their own header (.h) files:

Library nameheader filestatus
libftlibft.hfinished
printfft_printf.hfinished
getoptft_getopt.hunfinished
string (not the standard strings.h)ft_string.hunfinished

Including libft to a project

The library (.a) file is created in lib/ directory and the header (.h) files can be found in the include/ directory.

Assuming you have cloned the project (libft) to the root directory of your project. To use the libft on the project you would use as following

## before you do the following you must create the `libft.a`## file in the libft project
cc -I libft/include -L libft/lib -lft <your source / object files> -o <output file>

More information.

For more information about about all the libraries and their api refer to the wiki section.

About

Libft - the Clib for 42

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages