An open API service indexing awesome lists of open source software.

https://github.com/bebalix/libft

Create my own C library
https://github.com/bebalix/libft

42projects language-c libft

Last synced: 11 months ago
JSON representation

Create my own C library

Awesome Lists containing this project

README

          

# libft

Make a my own libc with this fonction :

1. implement function who exist in libc :

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

2. implement function who's not exist in libc:

• 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

3. bonus, implement function for linked list :
• ft_lstnew
• ft_lstadd_front
• ft_lstsize
• ft_lstlast
• ft_lstadd_back
• ft_lstdelone
• ft_lstclear
• ft_lstiter
• ft_lstmap

I add two other project in the libft with this functions :

• get_next_line

• ft_printf

## How to use

- compile and create the lib.a :

```sh
$ make
```

- Remove all:

```sh
$ make fclean
```