GithubHelp home page GithubHelp logo

haimasker / libft Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 1.51 MB

Standard C functions implementation

Makefile 2.16% C 97.84%
42school 42projects 42project 21school ecole42 libft libft42 c norminette school21 school42 42-school 42 42born2code

libft's Introduction

libft

This project was made in accordance with the project of School 21 (Ecole 42).

GitHub code size in bytes Number of lines of code Code language count GitHub top language


Preamble

The purpose of this project is to create own C library that implements original functions from the standard library.

You can see the subject here: Libft.

Main requirements, rules and code style: Norm.


Installation and usage

Makefile compiles given functions into C static library file.

Compiler: gcc

Flags: -Wall -Werror -Wextra


  • Go to the project folder:
$ cd 'path_to_libft'
  • Then typo one of these command:
Command Description
make compiling mandatory part
make bonus compiling mandatory and bonus part
make clean clearing all .o files
make fclean clearing all .o files and library
  • To use compiled project in your code just include library header:
#include "libft.h"
  • While compiling your code add these flags:
-lft -L 'path_to_libft.a' -I 'path_to_libft.h'

Libft functions

Libc functions Additional functions Bonus part
ft_isalpha ft_substr ft_lstnew
ft_isdigit ft_strjoin ft_lstadd_front
ft_isalnum ft_strtrim ft_lstsize
ft_isascii ft_split ft_lstlast
ft_isprint ft_itoa ft_lstadd_back
ft_strlen ft_strmapi ft_lstdelone
ft_memset ft_striteri ft_lstclear
ft_bzero ft_putchar_fd ft_lstiter
ft_memcpy ft_putstr_fd ft_lstmap
ft_memmove ft_putendl_fd
ft_strlcpy ft_putnbr_fd
ft_strlcat
ft_toupper
ft_tolower
ft_strchr
ft_strrchr
ft_strncmp
ft_memchr
ft_memcmp
ft_strnstr
ft_atoi
ft_calloc
ft_strdup

Testing

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.