{"id":19590656,"url":"https://github.com/aaron-22766/42_libft","last_synced_at":"2026-06-18T10:31:50.984Z","repository":{"id":156192843,"uuid":"570044366","full_name":"aaron-22766/42_libft","owner":"aaron-22766","description":"Writing my own library of functions from the C standard libraries","archived":false,"fork":false,"pushed_at":"2024-02-22T11:57:28.000Z","size":82,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-21T10:04:25.125Z","etag":null,"topics":["42","42-libft","42born2code","42heilbronn","42projects","42school","c","c-library"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aaron-22766.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-24T08:00:08.000Z","updated_at":"2024-09-08T16:12:14.000Z","dependencies_parsed_at":"2024-11-11T08:28:26.315Z","dependency_job_id":"a5b1c5e9-ba81-4091-8d26-452b08f9d3c1","html_url":"https://github.com/aaron-22766/42_libft","commit_stats":null,"previous_names":["aaron-22766/42_libft"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aaron-22766/42_libft","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaron-22766%2F42_libft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaron-22766%2F42_libft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaron-22766%2F42_libft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaron-22766%2F42_libft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaron-22766","download_url":"https://codeload.github.com/aaron-22766/42_libft/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaron-22766%2F42_libft/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34487069,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["42","42-libft","42born2code","42heilbronn","42projects","42school","c","c-library"],"created_at":"2024-11-11T08:25:50.175Z","updated_at":"2026-06-18T10:31:50.957Z","avatar_url":"https://github.com/aaron-22766.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n\t\u003cp\u003e\n\tLIBFT\n\t\u003c/p\u003e\n\t\u003cimg src=\"https://github.com/aaron-22766/aaron-22766/blob/main/42-badges/libftm.png\"\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cb\u003e\u003ci\u003eYour very first own library\u003c/i\u003e\u003c/b\u003e\u003cbr\u003e\u003cbr\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg alt=\"GitHub code size in bytes\" src=\"https://img.shields.io/github/languages/code-size/aaron-22766/42_libft?color=lightblue\" /\u003e\n\t\u003cimg alt=\"Code language count\" src=\"https://img.shields.io/github/languages/count/aaron-22766/42_libft?color=yellow\" /\u003e\n\t\u003cimg alt=\"GitHub top language\" src=\"https://img.shields.io/github/languages/top/aaron-22766/42_libft?color=blue\" /\u003e\n\t\u003cimg alt=\"GitHub last commit\" src=\"https://img.shields.io/github/last-commit/aaron-22766/42_libft?color=green\" /\u003e\n\u003c/p\u003e\n\n---\n\n## 🗣 About\n\nThis project is about coding a C library. It will contain a lot of general purpose functions your programs will rely upon. It is your very 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.\n\n## 🛠 Usage\n\n### Requirements\n\nThe library is written in C language and thus needs the **`gcc` compiler** and some standard **C libraries** to run.\n\n### Instructions\n\n**1. Compiling the library**\n\nTo compile the library, run:\n\n```shell\n$ cd path/to/libft \u0026\u0026 make\n```\n\n**2. Using it in your code**\n\nTo use the library functions in your code, simply include its header:\n\n```C\n#include \"libft.h\"\n```\n\n**3. Link your program with libft.a**\n\n```Makefile\nLIBFT_DIR = path/to/libft\nLIBFT = $(LIBFT_DIR)/libft.a\n\n$(NAME): $(LIBFT)\n\tgcc $(LIBFT) $(MY_SRCS)...\n\n$(LIBFT):\n\tmake -C $(LIBFT_DIR)\n```\n\n## 💬 Description\n\n### string\n| Function           | Description                                                                                                           |\n|--------------------|-----------------------------------------------------------------------------------------------------------------------|\n| ft_strlen          | Computes the length of the string ’s’. (not protected)                                                                |\n| ft_strlcpy         | Copies ’src’ to ’dst’                                                                                                 |\n| ft_strlcat         | Concatenates ’src’ to ’dst’                                                                                           |\n| ft_strchr          | Locates the first occurrence of the character ’c’ in the string ’s’                                                   |\n| ft_strrchr         | Locates the last occurrence of the character ’c’ in the string ’s’                                                    |\n| ft_strcmp          | Compares the two strings ’s1’ and ’s2’                                                                                |\n| ft_strncmp         | Compares ’n’ characters of the two strings ’s1’ and ’s2’                                                              |\n| ft_strncpy         | Copies at most ’len’ characters from ’src’ to ’dst’                                                                   |\n| ft_strnstr         | Locates the first occurrence of ’needle’ in ’haystack’, within ’len’ characters                                       |\n| ft_strdup          | Allocates a copy of ’s1’                                                                                              |\n| ft_substr          | Allocates a sub-string from the string ’s’                                                                            |\n| ft_strjoin         | Allocates new string, which is the result of the concatenation of ’s1’ and ’s2’                                       |\n| ft_strtrim         | Allocates a copy of ’s1’ with all characters specified in ’set’ removed from the beginning and the end of the string. |\n| ft_split           | Splits ’s’ using the character ’c’ as a delimiter                                                                     |\n| ft_strmapi         | Applies the function ’f’ to each character of ’s’, returning new string                                               |\n| ft_striteri        | Applies the function ’f’ on each character of ’s’                                                                     |\n\n### memory\n| Function          | Description                                                                                     |\n|-------------------|-------------------------------------------------------------------------------------------------|\n| ft_calloc         | Allocates space for ’count’ elements that are ’size’ bytes of memory, filled with zeroed bytes. |\n| ft_memset         | Writes ’len’ bytes of value ’c’ to the array ’b’                                                |\n| ft_bzero          | Writes ’n’ zeroed bytes to the string ’s’                                                       |\n| ft_memcpy         | Copies ’n’ bytes from memory area ’src’ to memory area ’dst’                                    |\n| ft_memmove        | Copies ’len’ bytes from string ’src’ to string ’dst’ (non-destructive manner)                   |\n| ft_memchr         | Searches for the first occurence of ’c’ in ’s’ within ’n’ bytes                                 |\n| ft_memcmp         | Compares byte string ’s1’ against byte string ’s2’                                              |\n\n### print\n| Function        | Description                                                                    |\n|-----------------|--------------------------------------------------------------------------------|\n| ft_putchar_fd   | Outputs the character ’c’ to the given file descriptor ’fd’                    |\n| ft_putstr_fd    | Outputs the string ’s’ to the given file descriptor ’fd’                       |\n| ft_putendl_fd   | Outputs the string ’s’ to the given file descriptor ’fd’ followed by a newline |\n| ft_putnbr_fd    | Outputs the integer ’n’ to the given file descriptor ’fd’                      |\n\n### convert\n| Function               | Description                                                             |\n|------------------------|-------------------------------------------------------------------------|\n| ft_toupper             | Converts a lower-case letter to the corresponding upper-case letter     |\n| ft_tolower             | Converts a upper-case letter to the corresponding lower-case letter     |\n| ft_atoi                | Converts the initial portion of ’str’ to int representation             |\n| ft_itoa                | Converts the integer ’n’ to string representation                       |\n\n### check\n| Function           | Description                                          |\n|--------------------|------------------------------------------------------|\n| ft_isalpha         | Checks character for an alphabetic character         |\n| ft_isdigit         | Checks character for a digit                         |\n| ft_isalnum         | Checks character for an alhabetic character or digit |\n| ft_isprint         | Checks character for a printable character           |\n| ft_isascii         | Checks character for an ascii character              |\n\n### linked list (bonus)\n| Function        | Description                                                                                            |\n|-----------------|--------------------------------------------------------------------------------------------------------|\n| ft_lstnew       | Allocates and returns a new node                                                                       |\n| ft_lstadd_front | Adds the node ’new’ at the beginning of the list                                                       |\n| ft_lstsize      | Counts the number of nodes in a list                                                                   |\n| ft_lstlast      | Returns the last node of the list                                                                      |\n| ft_lstadd_back  | Adds the node ’new’ at the end of the list                                                             |\n| ft_lstdelone    | Frees the memory of the node’s content using the function ’del’ given as a parameter and free the node |\n| ft_lstclear     | Deletes and frees the given node and every successor of that node, using the function ’del’ and free   |\n| ft_lstiter      | Iterates the list ’lst’ and applies the function ’f’ on the content of each node                       |\n| ft_lstmap       | Creates a new list resulting of the successive applications of the function ’f’                        |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaron-22766%2F42_libft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaron-22766%2F42_libft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaron-22766%2F42_libft/lists"}