Skip to content

This project is designed to reimplement the basic C functions from the C Standard Library (Libc) and create your own custom standard library. As a bonus you will also need to implement some data structures and functions such as linked-list.

Notifications You must be signed in to change notification settings

AslanAmca/libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Libft

libft is a project designed to reimplement the functions of the C Standard Library (libc) and create your own custom standard library. In this project, you can improve your programming skills by rebuilding your basic functions in the C language on your own. In addition, you are also expected to implement some data structures such as linked lists and the functions related to these structures.

This project helps you to better understand the C language by creating on your own the basic functions needed when programming in C. It also gives you the opportunity to practice understanding data structures and building your own libraries.

Libft Functions

Functions from <ctype.h>

Functions from <string.h>

Functions from <stdlib.h>

  • ft_atoi - convert a string to an integer.
  • ft_calloc - allocates memory and sets its bytes' values to 0.

Non-standard functions

  • ft_substr - returns a substring from a string.
  • ft_strjoin - concatenates two strings.
  • ft_strtrim - trims the beginning and end of string with specific set of chars.
  • ft_split - splits a string using a char as parameter.
  • ft_itoa - converts a number into a string.
  • ft_strmapi - applies a function to each character of a string.
  • ft_striteri - applies a function to each character of a string.
  • ft_putchar_fd - output a char to a file descriptor.
  • ft_putstr_fd - output a string to a file descriptor.
  • ft_putendl_fd - output a string to a file descriptor, followed by a new line.
  • ft_putnbr_fd - output a number to a file descriptor.

Linked list functions

About

This project is designed to reimplement the basic C functions from the C Standard Library (Libc) and create your own custom standard library. As a bonus you will also need to implement some data structures and functions such as linked-list.

Topics

Resources

Stars

Watchers

Forks