Coder Social home page Coder Social logo

libft's Introduction

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 libft api 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:

recipe Description
all Creates the library
clean Remove all generated object files
fclean Calls the clean recipe and remove the library file
re Calls 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 name header file status
libft libft.h finished
printf ft_printf.h finished
getopt ft_getopt.h unfinished
string (not the standard strings.h) ft_string.h unfinished

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.

libft's People

Contributors

suddin0 avatar

Stargazers

Raphael Nuytten avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.