{"id":26383026,"url":"https://github.com/pmarkaide/42_libft","last_synced_at":"2025-09-10T19:44:51.482Z","repository":{"id":203276839,"uuid":"709230863","full_name":"pmarkaide/42_libft","owner":"pmarkaide","description":"Reimplementation of the standard C library functions","archived":false,"fork":false,"pushed_at":"2024-07-26T13:00:35.000Z","size":85,"stargazers_count":6,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-07-26T14:31:33.637Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmarkaide.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-10-24T09:44:35.000Z","updated_at":"2024-07-17T09:53:54.000Z","dependencies_parsed_at":"2024-03-26T18:32:05.743Z","dependency_job_id":"c8c4528d-79c9-4cc1-ba0c-f08c10421338","html_url":"https://github.com/pmarkaide/42_libft","commit_stats":null,"previous_names":["pmarkaide/42-libft","pmarkaide/42_libft"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarkaide%2F42_libft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarkaide%2F42_libft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarkaide%2F42_libft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarkaide%2F42_libft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmarkaide","download_url":"https://codeload.github.com/pmarkaide/42_libft/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243982256,"owners_count":20378607,"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":[],"created_at":"2025-03-17T06:19:52.533Z","updated_at":"2025-03-17T06:19:53.063Z","avatar_url":"https://github.com/pmarkaide.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Libft - Custom C Library Implementation\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/pmarkaide/meta/raw/master/hex-libft.jpg\" alt=\"Libft Logo\" width=\"200\"/\u003e\n\u003c/p\u003e\n\nLibft is my independent implementation of essential C library functions, developed as part of the libft project at [Hive Helsinki Coding School](https://www.hive.fi/en/). The primary objective is to recreate fundamental functions without relying on external support. Only three allowed functions—`malloc`, `free`, and `write`—can be utilized.\n\nThe unique approach taken is not just to learn the use of functions like `strnstr` but to meticulously code them from scratch. This library serves as a foundational component for subsequent, more intricate projects. The principle is clear: we can only use functions if we've previously built them from the ground up.\n\n## Table of Contents\n\n- [Features](#features)\n- [Getting Started](#getting-started)\n- [Usage Examples](#usage-examples)\n- [Contribution Guidelines](#contribution-guidelines)\n- [License](#license)\n\n\n## Features\n\n- **String Manipulation:** Custom implementations of standard string manipulation functions.\n- **Memory Management:** Functions for memory allocation and manipulation.\n- **Linked Lists:** Basic operations for linked list handling.\n- **Character Operations:** Functions for character manipulation and checking.\n- **File writing:** Writting desired data into files.\n\n## Getting Started\n\nTo use Libft in your project, you must clone the repo and run the makefile:\n\n```bash\ngit clone https://github.com/pmarkaid/42_libft.git libft\ncd libft\nmake\n```\n\n## Usage Examples\n\nHere are some basic examples demonstrating how to use Libft functions:\n\n```c\n#include \u003cstdio.h\u003e\n#include \"libft.h\"\n\nint main() {\n    // Example 1: Convert a string to an integer\n    const char *str1 = \"12345\";\n    int result1 = ft_atoi(str1);\n    printf(\"Result 1 (ft_atoi): %d\\n\", result1);\n\n    // Example 2: Get a substring\n    const char *str2 = \"Hello, World!\";\n    char *result2 = ft_substr(str2, 7, 5);\n    printf(\"Result 2 (ft_substr): %s\\n\", result2);\n    free(result2);\n\n    // Example 3: Add an element to the end of a linked list\n    t_list *list = NULL;\n    int data = 42;\n    ft_lstadd_back(\u0026list, ft_lstnew(\u0026data));\n    printf(\"Result 3 (ft_lstadd_back): %d\\n\", *(int *)(list-\u003econtent));\n\n    // Cleanup: Free the linked list\n    ft_lstclear(\u0026list, free);\n\n    return 0;\n}\n```\n\n## Contribution Guidelines\nContributions are welcome! If you see any bug, you are welcome to make open an issue.\n\n## License\nThis project is licensed under the [MIT License](https://raw.githubusercontent.com/pmarkaide/42_libft/master/LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmarkaide%2F42_libft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmarkaide%2F42_libft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmarkaide%2F42_libft/lists"}