Coder Social home page Coder Social logo

42cursus_libft's Introduction

42Madrid - libft

The libft project consists of creating your own first library by reproducing already existing functions. You can use libft on other 42 projects as long as it is allowed, so it will be updated frequently.

C Makefile

You can see the subject HERE

Installing and compiling the library:

1- Clone this repository

git clone https://github.com/MGuardia10/42cursus_libft.git

2- Navigate to the new directory and run make

cd 42cursus_libft
make

3- make clean to remove the object files and work on a cleaner directory

make clean

4- Include the libft header on your files and compile with the libft.a file.

#include "includes/libft.h"

int main(void)
{
  char *str = "123456";
  int num = ft_atoi(str);

  ft_printf("%d\n", num);
  return (0);
}

Compiling the Program

The libft comes with a Makefile that includes the following rules:

  • all: compiles the library
  • re: recompiles the library
  • clean: removes all object files
  • fclean: removes all object files and libft.a

Disclaimer

At 42School, almost every project must be written in accordance to the Norm, the school's coding standard. As a result, the implementation of certain parts may appear strange and for sure had room for improvement.

42cursus_libft's People

Contributors

mguardia10 avatar

Stargazers

 avatar Maria herradon  avatar

Watchers

 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.