{"id":16067965,"url":"https://github.com/clementvidon/libft","last_synced_at":"2025-09-09T01:41:08.725Z","repository":{"id":56742169,"uuid":"435958292","full_name":"clementvidon/libft","owner":"clementvidon","description":"[documented code / -pedantic -std=c89] - Libft project aims to recode some useful functions from libc as well as new functions of my choice.","archived":false,"fork":false,"pushed_at":"2022-11-09T14:32:52.000Z","size":2243,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-22T08:50:42.676Z","etag":null,"topics":["42","42born2code","42cursus","42libft","42network","42paris","42projects","42school","ansi","ansic","c","c89","libft","libft42"],"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/clementvidon.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}},"created_at":"2021-12-07T16:48:51.000Z","updated_at":"2024-01-12T18:25:02.000Z","dependencies_parsed_at":"2023-01-22T10:15:53.636Z","dependency_job_id":null,"html_url":"https://github.com/clementvidon/libft","commit_stats":null,"previous_names":["clementvidon/libft"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/clementvidon/libft","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clementvidon%2Flibft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clementvidon%2Flibft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clementvidon%2Flibft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clementvidon%2Flibft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clementvidon","download_url":"https://codeload.github.com/clementvidon/libft/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clementvidon%2Flibft/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274232035,"owners_count":25245856,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"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","42born2code","42cursus","42libft","42network","42paris","42projects","42school","ansi","ansic","c","c89","libft","libft42"],"created_at":"2024-10-09T06:07:16.858Z","updated_at":"2025-09-09T01:41:08.709Z","avatar_url":"https://github.com/clementvidon.png","language":"C","readme":"\u003ch1 align=\"center\"\u003e\n\tLIBFT 42\n\u003c/h1\u003e\n\n\u003ch3 align=\"center\"\u003e\n\t\u003ca href=\"#Summary\"\u003eSummary\u003c/a\u003e\n\t\u003cspan\u003e · \u003c/span\u003e\n\t\u003ca href=\"#Usage\"\u003eUsage\u003c/a\u003e\n\t\u003cspan\u003e · \u003c/span\u003e\n\t\u003ca href=\"#Tester\"\u003eTester\u003c/a\u003e\n\t\u003cspan\u003e · \u003c/span\u003e\n\t\u003ca href=\"#Tools\"\u003eTools\u003c/a\u003e\n\u003c/h3\u003e\n\n##  Summary\n\nFirst project of [42Paris](https://42.fr/) aims to create its own standard\nlibrary based on `libc` by creating certain existing and non-existing functions\nfrom scratch.  This library is also intended to be used and enriched with the\nfunctions of our choice throughout the curriculum.\n\n\u003e *\"It will contain a lot of general purpose functions your programs will rely\n\u003e upon.\"* - [Subject](https://cdn.intra.42.fr/pdf/pdf/57361/en.subject.pdf)\n\u003e \nExternal functions: `malloc`, `free`, `write`\n\nCode written in accordance with **42 C** coding style,  **ANSI C89** compliant and entirely **documented with docstrings**.\n\n\u003chr\u003e\n\nI chose not to protect the functions from NULL pointers passed to them as a\nparameter, indeed I prefer to let an explicit `SEGV` happen rather than obscure\nthe problem behind a `return (NULL);` making it more tedious to debug from a\nsuperior layer of abstraction.\n\nThis choice is also observable in the `libc`.  For example `STRLEN(3)`\nimplementation from `\u003cstring.h\u003e` will crash a program that tries to pass it a\n`NULL` string instead of returning `NULL` as it would if it was protected.\n\n##  Usage\n\nCompile the library with a simple `make -j` then add `#include \"libft.h\"` to\nyour project and compile it with these additional flags:\n\n    -I \u003cpath_to_libft_include_dir\u003e\n    -L \u003cpath_to_libft_dir\u003e\n    -l ft\n\n***Makefile rules***\n\n- `make` -- compiles get_next_line.\n- `make clean` -- deletes object files.\n- `make fclean` -- deletes object files and get_next_line.\n- `make re` -- fclean + make.\n\n## Tester\n\n- **[libftTester](https://github.com/Tripouille/libftTester)**\n\n- **[libft-unit-test](https://github.com/alelievr/libft-unit-test)**\n\n## Tools\n\n- **sanitizer**: `-fsanitize=address`\n\n*Add `-g` flag when compiling with `-fsanitize=address` to print errors line numbers instead of addresses in hexadecimal.*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclementvidon%2Flibft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclementvidon%2Flibft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclementvidon%2Flibft/lists"}