Skip to content
/ LIBFT Public

Re-writable library of C standard functions

Notifications You must be signed in to change notification settings

dbadeev/LIBFT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libft

My first own library in C language.

The aim of this project is to code a C library, regrouping usual functions, that we’ll be allowed to use in all our future projects.

Getting Started

Copying

To copy the Project files to your local computer to the <your_dir_on_local_computer> folder, run:

    $ git clone git@github.com:dbadeev/LIBFT.git <your_dir_on_local_computer>

Contents

Libc functions

Memory

  • ft_bzero
  • ft_memset
  • ft_memcpy
  • ft_memccpy
  • ft_memmove
  • ft_memdel
  • ft_memchr
  • ft_memcmp
  • ft_memalloc
  • ft_memrealloc
  • ft_memdel

Strings

  • ft_strlen
  • ft_strdup
  • ft_strcpy
  • ft_strncpy
  • ft_strcat
  • ft_strncat
  • ft_strchr
  • ft_strrchr
  • ft_strstr
  • ft_strnstr
  • ft_strcmp
  • ft_strncmp

Convert

  • ft_atoi
  • ft_toupper
  • ft_tolower

Check

  • ft_isalpha
  • ft_isdigit
  • ft_isalnum
  • ft_isascii
  • ft_isprint

Additional Functions

Strings

  • ft_strnew
  • ft_strdel
  • ft_strclr
  • ft_striter
  • ft_striteri
  • ft_strmap
  • ft_strmapi
  • ft_strequ
  • ft_strnequ
  • ft_strsub
  • ft_strjoin
  • ft_strtrim
  • ft_strsplit
  • ft_strlcat

Convert

  • ft_itoa

I/O

  • ft_putchar
  • ft_putstr
  • ft_putendl
  • ft_putnbr
  • ft_putchar_fd
  • ft_putstr_fd
  • ft_putendl_fd
  • ft_putnbr_fd

Bonus Functions

Lists

  • ft_lstnew
  • ft_lstdelone
  • ft_lstdel
  • ft_lstadd
  • ft_lstiter
  • ft_lstmap

My Functions

Check

  • ft_istabeolsp

Lists

  • ft_lst_elemcpy
  • ft_lstdup

Int

  • ft_digcount_base
  • ft_powint

Pointers

  • ft_swap

More details regarding functions are in **libft.en.pdf** (https://github.com/dbadeev/LIBFT/blob/master/libft.en.pdf)

Usage

Compiling

  • to compile libft.a:
$ make

OR

$ make libft
  • to delete tmp files after compiling (only libft.a will be remain):
$ make clean
  • to delete ALL files after compiling:
    $ fclean
    
  • to update the configuration (if you change any filename.c/h):
    $ make
    
  • to recompile all files:
    $ make re
    

In Project

To use Libft in project:

#include <libft.h>
  • compile files with
-I /libft/includes
  • compile libft
  • link binary with
-L /libft -lft

Author

loram (Dmitry Badeev)


School 21 Result

image

About

Re-writable library of C standard functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published