Skip to content
/ Libft Public

Mimic some functions of the libc to use in upcoming projects (Functional)

Notifications You must be signed in to change notification settings

sumxtx/Libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libft

Those functions are for educational purposes only
As they may be bug or error prone, do not use them on real projects, or do your own checks

Disclaimer: I try to keep the 42 Style, but it's not normalized. Take it in consideration

Usage

  • Help Usage, Default Target
make
  • Build the archive (libft.a)
make all
  • Build the archive (libft.a) without --silent flag
    (For all recipes --silent flag is activated by default consider deactivating it if needed)
make all VERBOSE=y
  • Testing a function
    Build archive (libft.a) and a binary with the test for the function name
(see available mains at: test/main_*
(see available functions at: includes/source_list)
make MAIN=<functionName>
  • Debugging
    Make MAIN= with debug(-g), and sanitize flags
    Only available with the main build
make MAIN=<functionName> DEBUG=y

Part 0 - Build Tools

  • • Makefile

Part 1 - Libc functions

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

Part 2 - Additional functions

  • •• substr
  • •• strjoin
  • •• strtrim
  • •• split
  • •• itoa
  • •• strmapi
  • •• striteri
  • •• putchar_fd
  • •• putstr_fd
  • •• putendl_fd
  • •• putnbr_fd

Bonus

  • •• lstnew
  • •• lstadd_front
  • •• lstsize
  • •• lstlast
  • •• lstadd_back
  • •• lstdelone
  • •• lstclear
  • •• lstiter
  • •• lstmap

Addendum

  • •• isspace
  • •• isupper
  • •• islower
  • •• strnlen
  • •• strndup
  • •• atob

About

Mimic some functions of the libc to use in upcoming projects (Functional)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published