Libft42
his project is about coding a Clibrary. It will contain a lot of general purpose functions your programs will rely upon.
Install / Use
/learn @zmoussam/Libft42README
libft42
YOUR VERY FIRST OWN LIBRARY ---- >> This project is your first project as a student at 42. You will need to recode a few functions of the C standard library as well as some other utility functions that you will use during your whole cursus.
ABOUT LIBFT-PROJECT :
Programming in C can be very tedious when you don't have access to the very useful standard functions. This project gives you the opportunity to rewrite those functions to understand them and learn to use them. The library will help you for your future projects in C. Through this project, you have the opportunity to extend your list of functions in your own way! For more detailed information, look at the subject of this project.
WHAT IS MAKEFILE ? : Makefiles are files, usually called makefile or Makefile, used by the make program to perform a set of actions, such as compiling a project, checking in a document, updating a site, etc. This article will show how makefile works by compiling a small C project.So Make is a very general tool allowing to automate the compilation of a project. Suppose that the project consists of the following C sources: main.c, structure.c, and operation.c . It is possible to compile this project in three different ways, the following parts specify these different steps.
тЪая╕П NOTE тЪая╕П : To be successful with moulinette on this project I had to put all the files in the same directory. I have just put them in folders and modified the Makefile to have a better organized repository.
LIST OF FUNCTIONS :
---> Functions from <ctype.h> library
рнб ft_isascii - test for ASCII character.
рнб ft_isalnum - alphanumeric character test.
рнб ft_isalpha - alphabetic character test.
рнб ft_isdigit - decimal-digit character test.
рнб ft_isprint - printing character test (space character inclusive).
рнб ft_tolower - upper case to lower case letter conversion.
рнб ft_toupper - lower case to upper case letter conversion.
---> Functions from <stdlib.h> library
рнб ft_atoi - convert ASCII string to integer.
рнб ft_calloc - memory allocation.
---> Functions from <strings.h> library
рнб ft_bzero - write zeroes to a byte string.
рнб ft_memset - write a byte to a byte string.
рнб ft_memchr - locate byte in byte string.
рнб ft_memcmp- compare byte string.
рнб ft_memove - copy byte string.
рнб ft_memcpy - copy memory area.
---> Functions from <string.h> library
рнб ft_strlen- find length of string.
рнб ft_strchr - locate character in string (first occurrence).
рнб ft_strrchr - locate character in string (last occurence).
рнб ft_strntr - locate a substring in a string (size-bounded).
рнб ft_strncmp- compare strings (size-bounded).
рнб ft_strdup - save a copy of a string (with malloc).
рнб ft_strlcpy - size-bounded string copying.
рнб ft_strlcat - size-bounded string concatenation.
---> Non-standard functions
рнб ft_itoa - convert integer to ASCII string.
рнб ft_substr - extract substring from string.
рнб ft_strtrim - trim beginning and end of string with the specified characters.
рнб strjoin - concatenate two strings into a new string (with malloc).
рнб ft_split - split string, with specified character as delimiter, into an array of strings.
рнб ft_strmapi - create new string from modifying string with specified function.
рнб ft_striteri -applies the fonction f to each character of the string passed as argument , and passing it's index as firt argument
рнб ft_putchar_fd - output a character to given file.
рнб ft_putstr_fd - output string to given file.
рнб ft_putendl_fd - output string to given file with newline.
рнб ft_putnbr_fd - output integer to given file.
---> Linked list functions ( BONUS PART)
рнб ft_lstnew - create new list.
рнб ft_lstsize - count elements of a list.
рнб ft_lstlast - find last element of list.
рнб ft_lstadd_back - add new element at end of list.
рнб ft_lstadd_front - add new element at beginning of list.
рнб ft_lstdelone - delete element from list.
рнб ft_lstclear - delete sequence of elements of list from a starting point.
рнб ft_lstiter - apply function to content of all list's elements.
рнб ft_lstmap - apply function to content of all list's elements into new list.
Related Skills
node-connect
339.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.8kCommit, push, and open a PR
