Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/vinicius-santoro/42-formation-lvl1-1.libft

Project 1: libft - First project for the formation of software engineers at school 42 São Paulo.
https://github.com/vinicius-santoro/42-formation-lvl1-1.libft

42born2code 42school c shell-script software-engineering

Last synced: 16 days ago
JSON representation

Project 1: libft - First project for the formation of software engineers at school 42 São Paulo.

Awesome Lists containing this project

README

        

42-formation-lvl1-1.libft

### _Project 1 - Libft - First project for the formation of software engineers at school 42 São Paulo_

- This project aims to code a C library regrouping usual functions.

### _The project consists of three parts_
- In the first part, i recoded a set of the libc functions.
- In the second part, i coded a set of functions that are either not included in the
libc.
- In the third part (bonus), i created functions to manipulate lists.

## _Functions made in this project:_

### _Functions from ``_

- [`ft_isalpha`](libft-v2/ft_isalpha.c) - checks for an alphabetic character.
- [`ft_isdigit`](libft-v2/ft_isdigit.c) - check for a digit (0 through 9).
- [`ft_isalnum`](libft-v2/ft_isalnum.c) - checks for an alphanumeric character.
- [`ft_isascii`](libft-v2/ft_isascii.c) - checks whether c fits into the ASCII character set.
- [`ft_isprint`](libft-v2/ft_isprint.c) - checks for any printable character.
- [`ft_toupper`](libft-v2/ft_toupper.c) - convert char to uppercase.
- [`ft_tolower`](libft-v2/ft_tolower.c) - convert char to lowercase.

### _Functions from ``_

- [`ft_strlen`](libft-v2/ft_strlen.c) - calculate the length of a string.
- [`ft_memset`](libft-v2/ft_memset.c) - fill memory with a constant byte.
- [`ft_bzero`](libft-v2/ft_bzero.c) - zero a byte string.
- [`ft_memcpy`](libft-v2/ft_memcpy.c) - copy memory area.
- [`ft_memmove`](libft-v2/ft_memmove.c) - copy memory area.
- [`ft_strlcpy`](libft-v2/ft_strlcpy.c) - copy string to a specific size.
- [`ft_strlcat`](libft-v2/ft_strlcat.c) - concatenate a string to a specific size.
- [`ft_strchr`](libft-v2/ft_strchr.c) - locate character in a string.
- [`ft_strrchr`](libft-v2/ft_strrchr.c) - locate character in a string.
- [`ft_strncmp`](libft-v2/ft_strncmp.c) - compare two strings.
- [`ft_memchr`](libft-v2/ft_memchr.c) - scan memory for a character.
- [`ft_memcmp`](libft-v2/ft_memcmp.c) - compare memory areas.
- [`ft_strnstr`](libft-v2/ft_strnstr.c) - locate a substring in a string.
- [`ft_strdup`](libft-v2/ft_strdup.c) - creates a duplicate for the string passed as a parameter.

### _Functions from ``_
- [`ft_atoi`](libft-v2/ft_atoi.c) - convert a string to an integer.
- [`ft_calloc`](libft-v2/ft_calloc.c) - allocates memory and sets its bytes' values to 0.

### _Non-standard functions_
- [`ft_substr`](libft-v2/ft_substr.c) - returns a substring from a string.
- [`ft_strjoin`](libft-v2/ft_strjoin.c) - concatenates two strings.
- [`ft_strtrim`](libft-v2/ft_strtrim.c) - trims the beginning and end of a string with a specific set of chars.
- [`ft_split`](libft-v2/ft_split.c) - splits a string using a char as parameter.
- [`ft_itoa`](libft-v2/ft_itoa.c) - converts a number into a string.
- [`ft_strmapi`](libft-v2/ft_strmapi.c) - applies a function to each character of a string.
- [`ft_striteri`](libft-v2/ft_striteri.c) - applies a function to each character of a string.
- [`ft_putchar_fd`](libft-v2/ft_putchar_fd.c) - output a char to a file descriptor.
- [`ft_putstr_fd`](libft-v2/ft_putstr_fd.c) - output a string to a file descriptor.
- [`ft_putendl_fd`](libft-v2/ft_putendl_fd.c) - output a string to a file descriptor, followed by a new line.
- [`ft_putnbr_fd`](libft-v2/ft_putnbr_fd.c) - output a number to a file descriptor.

### _Linked list functions_

- [`ft_lstnew`](libft-v2/ft_lstnew.c) - creates a new list element.
- [`ft_lstadd_front`](libft-v2/ft_lstadd_front.c) - adds an element at the beginning of a list.
- [`ft_lstsize`](libft-v2/ft_lstsize.c) - counts the number of elements in a list.
- [`ft_lstlast`](libft-v2/ft_lstlast.c) - returns the last element of the list.
- [`ft_lstadd_back`](libft-v2/ft_lstadd_back.c) - adds an element at the end of a list.