Skip to content

Repository created to store a C function library to use in 42 School

Notifications You must be signed in to change notification settings

luizlcezario/Libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github-Explorer

Luiz Cezario GitHub last commit Stargazers

Libft of 42. Make with ❤︎ for Luiz Cezario

📌 Index

✨ What is Libft?

Libft is an individual project at 42 that requires us to re-create some standard C library functions including some additional ones that can be used later to build a library of useful functions for the rest of the program.

At 42 we're not allowed to use some standard libraries on our projects, so we have to keep growing this library with our own functions as we go farther in the program.


📑 List of Fucntions

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 a string with a 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

Functions of Others Projects

  • ft_strfstr - Function finds a first ocurrency of some letters from the second frase.
  • ft_itoa_base - Function transform a number in base 10 to base thats was passed and then return in string version.
  • get_next_line - Funtions thats read the next line of a File Descriptor.
  • ft_printf - Function is a recreation of the original version of printf with some flags.
  • ft_formatf - Function returns the formated string like a print of printf.

💻 Technologies

This Project was made with:

👷 How to Run

# If you want a Script for testing use this :
# https://github.com/luizlcezario/Libft_Test.git

# Clone the Repo
$ git clone https://github.com/luizlcezario/Libft_Test.git

# Enter in the Folder
$ cd Libft

# *************COMMANDS************ #
# run - run compile all the libtest with the your libft and run the all tests
$ make all
# clean - remove the .o and .c files 
$ make clean
# fclean - remove the .o and .c files and the .a
$ make fclean
# re - remove all files and remake all
$ make re

# after run one time the the comand all 
# you can use compile others files .c using this lib 
# and using the function of then.
$ gcc main.c -L . -lft

🐛 Issues

Please feel free to create a new issue with its title and description on the issues page of the Libft Repository. If you have already found the solution to the problem, I would love to review your pull request!

Give ⭐️ if you like this project, this will help me!

About

Repository created to store a C function library to use in 42 School

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published