Skip to content
/ libft Public

School 42 project. C library (Reimplementation of libc functions)

Notifications You must be signed in to change notification settings

levonka/libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libft

Libft is a School 42 project. The purpose of this project is to create own C library.

libft.en.pdf is the task file.

Usage

To compile the library, run:

$ make

Final score

125/100 (max)

List

Functions from <ctype.h> library

Functions from <stdlib.h> library

  • ft_atoi - convert ASCII string to integer.

Functions from <strings.h> library

Functions from <string.h> library

Non-standard functions

  • ft_putchar - output a character to stdout.
  • ft_putchar_fd - output a character to given file.
  • ft_putstr - output string to stdout.
  • ft_putstr_fd - output string to given file.
  • ft_putendl - output string to stdout with newline.
  • ft_putendl_fd - output string to given file with newline.
  • ft_putnbr - output integer to stdout.
  • ft_putnbr_fd - output integer to given file.
  • ft_itoa - convert integer to ASCII string.
  • ft_strtrim - trim beginning and end of string with the specified characters.
  • ft_strjoin - concatenate two strings into a new string (with malloc).
  • ft_split - split string, with specified character as delimiter, into an array of strings.
  • ft_strmapi - create new string from modifying string with specified function.

Linked list functions

  • ft_lstnew - create new list.
  • ft_lstadd - add new element at end of list.
  • ft_lstdelone - delete element from list.
  • ft_lstiter - apply function to content of all list's elements.
  • ft_lstmap - apply function to content of all list's elements into new list.

About

School 42 project. C library (Reimplementation of libc functions)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published