{"id":21933171,"url":"https://github.com/link-wolf/libft","last_synced_at":"2026-04-26T08:38:15.020Z","repository":{"id":45716609,"uuid":"463064194","full_name":"Link-Wolf/libft","owner":"Link-Wolf","description":"42 project - Created my first and own C-library","archived":false,"fork":false,"pushed_at":"2024-10-01T13:08:06.000Z","size":1110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T13:27:10.853Z","etag":null,"topics":["42","42born2code","42school","c","macos"],"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/Link-Wolf.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-02-24T08:19:11.000Z","updated_at":"2024-10-01T13:08:10.000Z","dependencies_parsed_at":"2025-01-27T12:54:30.538Z","dependency_job_id":null,"html_url":"https://github.com/Link-Wolf/libft","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-Wolf%2Flibft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-Wolf%2Flibft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-Wolf%2Flibft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-Wolf%2Flibft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Link-Wolf","download_url":"https://codeload.github.com/Link-Wolf/libft/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Link-Wolf%2Flibft/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259110438,"owners_count":22806720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","42born2code","42school","c","macos"],"created_at":"2024-11-29T00:08:43.460Z","updated_at":"2026-04-26T08:38:09.995Z","avatar_url":"https://github.com/Link-Wolf.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv id=\"top\"\u003e\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\t\u003ca href=\"https://github.com/Link-Wolf/libft\" title=\"Go to GitHub repo\"\u003e\u003cimg src=\"https://img.shields.io/static/v1?label=Link-Wolf\u0026message=libft\u0026color=blue\u0026logo=github\u0026style=for-the-badge\" alt=\"Link-Wolf - libft\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://\"\u003e\u003cimg src=\"https://img.shields.io/badge/42_grade-125_%2F_100-2ea44f?style=for-the-badge\" alt=\"42 grade - 125 / 100\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://\"\u003e\u003cimg src=\"https://img.shields.io/badge/Year-2022-ffad9b?style=for-the-badge\" alt=\"Year - 2022\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://github.com/Link-Wolf/libft/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/Link-Wolf/libft?style=for-the-badge\u0026color=yellow\" alt=\"stars - libft\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://github.com/Link-Wolf/libft/network/members\"\u003e\u003cimg src=\"https://img.shields.io/github/forks/Link-Wolf/libft?style=for-the-badge\u0026color=lightgray\" alt=\"forks - libft\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://github.com/Link-Wolf/libft/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/Link-Wolf/libft?style=for-the-badge\u0026color=orange\" alt=\"issues - libft\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://www.apple.com/macos/\" title=\"Go to Apple homepage\"\u003e\u003cimg src=\"https://img.shields.io/badge/OS-macOS-blue?logo=apple\u0026logoColor=white\u0026style=for-the-badge\u0026color=9cf\" alt=\"OS - macOS\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca\u003e\n    \u003cimg src=\"https://www.42mulhouse.fr/wp-content/uploads/2022/06/logo-42-Mulhouse-white.svg\" alt=\"Logo\" width=\"192\" height=\"80\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003elibft\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n\t  \u003cem\u003eYour own library\u003c/em\u003e\u003cbr/\u003e\n    A C project to create our first library of reimplemented functions and more\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/Link-Wolf/libft/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/Link-Wolf/libft/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#prerequisites\"\u003ePrerequisites\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#roadmap\"\u003eRoadmap\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n\n## About The Project\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca\u003e\n    \u003cimg src=\"assets/libft_header.png\" alt=\"Libft header\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\nThis project is focused on create our first C library \u003cbr /\u003e\nIt has to be filled with some recoded native functions, but we also added a lot of functions we created during our 42-cursus to still use it by the time \u003cbr /\u003e\nIt is also why it contains the whole [ft_printf](https://github.com/Link-Wolf/ft_printf) project or the [get_next_line](https://github.com/Link-Wolf/get_next_line) one for example !\n\n### Reimplemented natives functions\n\n-   isalpha / isdigit / isalnum / isascii / isprint / strlen / memset / bzero / memcpy / memmove / strlcpy / strlcat / toupper / tolower / strchr / strrchr / strncmp / memchr / memcmp / strnstr / atoi / calloc / strdup\n\n### Reinterpreted or new functions\n\n-   ft_printf / 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 / get_next_line\n\n### New lists functions\n\n-   ft_lstnew / ft_lstadd_front / ft_lstsize / ft_lstlast / ft_lstadd_back / ft_lstdelone / ft_lstclear / ft_lstiter / ft_lstmap\n\n### Additionnals functions added by the time\n\n-   ft_utoa / ft_ultoa_base / ft_utoa_base / ft_strcontain / ft_strcmp / ft_tab_min / ft_tab_max / ft_abs / ft_lstcalendar / ft_memcat / ft_sort_int_tab / ft_lstmaxint / ft_lstminint / ft_sqrt / ft_is_nodoubl / ft_tab_size / ft_print_tab / ft_atou\n\nFor all informations about functions behaviour and parameters, check their documentation [here](/libft.h)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- GETTING STARTED --\u003e\n\n## Getting Started\n\nBecause it's a simple C library, there isn't much to say here\n\n### Prerequisites\n\nHaving a C compiler like cc, gcc or clang\n\n### Installation\n\n1. Clone the repo\n    ```sh\n    git clone https://github.com/Link-Wolf/libft.git\n    ```\n2. Compile the project\n    ```sh\n    cd libft; make\n    ```\n3. Include the libft in your C project\n    ```c\n    #include \"libft/libft.h\n    ```\n4. Compile your project with the libft library\n    ```sh\n    gcc your_project.c -L./libft -lft\n    ```\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- USAGE EXAMPLES --\u003e\n\n## Usage\n\nUse all the libft functions as you'd use the equivalents natives ones, or read the [documentation](/libft.h) to understand what do and how work the others !\n\n```c\nchar *example = \"_-aw,i| \\t\tWO42s!\";\n\nfor (int i = 0; i \u003c ft_strlen(example); i++) {\n\tif (!ft_isprint(example[i]) || !ft_isalpha(example[i]))\n\t\tft_printf(\"0\");\n\telse\n\t\tft_printf(\"1\");\n}\n```\n\nOutput\n\n```c\n0011010000110010\n```\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- ROADMAP --\u003e\n\n## Roadmap\n\n-   [x] Add [ft_printf](https://github.com/Link-Wolf/ft_printf)\n-   [x] Add [get_next_line](https://github.com/Link-Wolf/get_next_line)\n\nSee the [open issues](https://github.com/Link-Wolf/libft/issues) for a full list of proposed features (and known issues).\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- CONTRIBUTING --\u003e\n\n## Contributing\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flink-wolf%2Flibft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flink-wolf%2Flibft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flink-wolf%2Flibft/lists"}