Giter Site home page Giter Site logo

lazylogger / libft Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 76 KB

[42Seoul] Create my own library by writing frequently used functions in C. The aim of this project is to code a C library regrouping usual functions that you'll be allowed to use in all your other projects.

C 96.71% Makefile 3.29%

libft's Introduction

[42Seoul] Libft

♠ Score

success (115 / 100)
Score

♠ The aim of this project

Libft is your very first own library in 42cursus.
The aim of this project is to code a C library regrouping usual functions that you'll be allowed to use in all your other projects.

♠ Subject

  • Mandatory Part 1

In this first part, you must re-code a set of the libc functions, as defined in their man. Your functions will need to present the same prototype and behaviors as the originals. Your functions' names must be prefixed by "ft_". For instance strlen becomes ft_strlen.

memset bzero memcpy memccpy memmove memmove memchr memcmp
strlen strlcpy strlcat strchr strrchr strnstr strncmp atoi
isalpha isdigit isalnum isascii isprint toupper tolower
calloc strdup
  • Mandatory Part 2

In this second part, you must code a set of functions that are either not included in the libc, or included in a different form. Some of these functions can be useful to write Part1's functions.

ft_substr ft_strjoin ft_strtrim ft_split ft_itoa ft_strmapi
ft_putchar_fd ft_putstr_fd ft_putendl_fd ft_putnbr_fd
  • Bonus

Having functions to manipulate memory and strings is very useful, but you'll soon discover that having functions to manipulate lists is even more useful.

ft_lstnew ft_lstadd_front ft_lstsize ft_lstlast ft_lstadd_back
ft_lstdelone ft_lstclear
ft_lstiter ft_lstmap

♠ Libft Tester

1. Libftest by jtoty

Libftest

2. libft-unit-test by alelievr

libft-unit-test

3. libft-war-machine by ska42

libft-war-machine

libft's People

Contributors

lazylogger avatar

Watchers

James Cloos avatar  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.