malinirs / libft

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Изначально всё написано для определенного Технического Задания. Код приведён в соответствиие с правилами norminette. Возможны доработки и дополнения.

Write your own library, containing an extract from 43 important functions for your cursus.

Turn in files: *.c, libft.h, Makefile

Part 1 - Libc functions. You must re-code the following functions. These function do not need any external functions:

• isalpha

• isdigit

• isalnum

• isascii

• isprint

• strlen

• memset

• bzero

• memcpy

• memmove

• strlcpy

• strlcat

• toupper

• tolower

• strchr

• strrchr

• strncmp

• memchr

• memcmp

• strnstr

• atoi

You must also re-code the following functions, using the function “malloc”:

• calloc

• strdup

Part 2 - Additional functions

• ft_substr

• ft_strjoin

• ft_strtrim

• ft_split

• ft_itoa

• ft_strmapi

• ft_striteri

• ft_putchar_fd

• ft_putstr_fd

• ft_putendl_fd

• ft_putnbr_fd

Bonus part. The following functions will allow you to easily use your lists.

• ft_lstnew

• ft_lstadd_front

• ft_lstsize

• ft_lstlast

• ft_lstadd_back

• ft_lstdelone

• ft_lstclear

• ft_lstiter

• ft_lstmap

About


Languages

Language:C 96.2%Language:Makefile 3.8%