{"id":18710760,"url":"https://github.com/ludwigandreas/libft","last_synced_at":"2025-11-09T13:30:19.531Z","repository":{"id":153324703,"uuid":"495389824","full_name":"LudwigAndreas/libft","owner":"LudwigAndreas","description":"Library for 21","archived":false,"fork":false,"pushed_at":"2024-06-18T14:39:49.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-28T08:09:28.196Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LudwigAndreas.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":"2022-05-23T11:53:58.000Z","updated_at":"2024-06-18T14:39:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"bce14caf-74c5-497a-bdf6-436d79e41589","html_url":"https://github.com/LudwigAndreas/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/LudwigAndreas%2Flibft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LudwigAndreas%2Flibft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LudwigAndreas%2Flibft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LudwigAndreas%2Flibft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LudwigAndreas","download_url":"https://codeload.github.com/LudwigAndreas/libft/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239576320,"owners_count":19662108,"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":"2024-11-07T12:35:35.875Z","updated_at":"2025-11-09T13:30:19.407Z","avatar_url":"https://github.com/LudwigAndreas.png","language":"C","readme":"# Libft\n\nThis project is a C library of useful functions that we will use in the future projects.\n\n## Table of Contents\n\n- [About](#about)\n- [Functions](#functions)\n  - [Functions from `\u003cctype.h\u003e`](#functions-from-ctypeh)\n  - [Functions from `\u003cstring.h\u003e`](#functions-from-stringh)\n  - [Functions from `\u003cstdlib.h\u003e`](#functions-from-stdlibh)\n  - [Non-standard functions](#non-standard-functions)\n  - [Linked list functions](#linked-list-functions)\n- [Getting Started](#getting-started)\n  - [Prerequisites](#prerequisites)\n  - [Installing](#installing)\n- [Usage](#usage)\n- [Built Using](#built-using)\n- [Authors](#authors)\n- [Acknowledgements](#acknowledgements)\n- [License](#license)\n\n## About\n\nLibft is a library of useful functions that we will use in the future projects. The library is written in C and is based on the standard C library. The project is a part of the School 21 curriculum.\n\n## Functions\n\n### Functions from `\u003cctype.h\u003e`\n\n- [`ft_isalpha`](ft_isalpha.c) - checks  for  an  alphabetic  character.\n- [`ft_isdigit`](ft_isdigit.c) - checks for a digit (0 through 9).\n- [`ft_isalnum`](ft_isalnum.c) - checks for an alphanumeric character.\n- [`ft_isascii`](ft_isascii.c) - checks whether c fits into the ASCII character set.\n- [`ft_isprint`](ft_isprint.c) - checks for any printable character.\n- [`ft_toupper`](ft_toupper.c) - convert char to uppercase.\n- [`ft_tolower`](ft_tolower.c) - convert char to lowercase.\n\n### Functions from `\u003cstring.h\u003e`\n\n- [`ft_memset`](ft_memset.c) - fill memory with a constant byte.\n- [`ft_strlen`](ft_strlen.c) - calculate the length of a string.\n- [`ft_bzero`](ft_bzero.c) - zero a byte string.\n- [`ft_memcpy`](ft_memcpy.c) - copy memory area.\n- [`ft_memmove`](ft_memmove.c) - copy memory area.\n- [`ft_strlcpy`](ft_strlcpy.c) - copy string to an specific size.\n- [`ft_strlcat`](ft_strlcat.c) - concatenate string to an specific size.\n- [`ft_strchr`](ft_strchr.c) - locate character in string.\n- [`ft_strrchr`](ft_strrchr.c) - locate character in string.\n- [`ft_strncmp`](ft_strncmp.c) - compare two strings.\n- [`ft_memchr`](ft_memchr.c) - scan memory for a character.\n- [`ft_memcmp`](ft_memcmp.c) - compare memory areas.\n- [`ft_strnstr`](ft_strnstr.c) - locate a substring in a string.\n- [`ft_strdup`](ft_strdup.c) - creates a dupplicate for the string passed as parameter.\n\n### Functions from `\u003cstdlib.h\u003e`\n\n- [`ft_atoi`](ft_atoi.c) - convert a string to an integer.\n- [`ft_calloc`](ft_calloc.c) - allocates memory and sets its bytes' values to 0.\n\n### Non-standard functions\n\n- [`ft_substr`](ft_substr.c) - returns a substring from a string.\n- [`ft_strjoin`](ft_strjoin.c) - concatenates two strings.\n- [`ft_strtrim`](ft_strtrim.c) - trims the beginning and end of string with specific set of chars.\n- [`ft_split`](ft_split.c) - splits a string using a char as parameter.\n- [`ft_itoa`](ft_itoa.c) - converts a number into a string.\n- [`ft_strmapi`](ft_strmapi.c) - applies a function to each character of a string.\n- [`ft_striteri`](ft_striteri.c) - applies a function to each character of a string.\n- [`ft_putchar_fd`](ft_putchar_fd.c) - output a char to a file descriptor.\n- [`ft_putstr_fd`](ft_putstr_fd.c) - output a string to a file descriptor.\n- [`ft_putendl_fd`](ft_putendl_fd.c) - output a string to a file descriptor, followed by a new line.\n- [`ft_putnbr_fd`](ft_putnbr_fd.c) - output a number to a file descriptor.\n\n### Linked list functions\n\n- [`ft_lstnew`](ft_lstnew.c) - creates a new list element.\n- [`ft_lstadd_front`](ft_lstadd_front.c) - adds an element at the beginning of a list.\n- [`ft_lstsize`](ft_lstsize.c) - counts the number of elements in a list.\n- [`ft_lstlast`](ft_lstlast.c) - returns the last element of the list.\n- [`ft_lstadd_back`](ft_lstadd_back.c) - adds an element at the end of a list.\n- [`ft_lstclear`](ft_lstclear.c) - deletes and free list.\n- [`ft_lstiter`](ft_lstiter.c) - applies a function to each element of a list.\n- [`ft_lstmap`](ft_lstmap.c) - applies a function to each element of a list.\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.\n\n### Prerequisites\n\nWhat things you need to install the software and how to install them.\n\n```text\ngcc \u003e= 7.5.0\nmake \u003e= 4.1\n```\n\n```bash\nsudo apt-get install make\nsudo apt-get install gcc\n```\n\n### Installing\n\nA step by step series of examples that tell you how to get a development env running.\n\nClone the repository.\n\n```bash\ngit clone https://github.com/LudwigAndreas/libft\n\ncd libft\n```\n\nBuild the project.\n\n```bash\nmake\n```\n\nIt will compile the library and create a static library file `libft.a`.\n\n## Usage\n\nTo use the library in your project, include the header file `libft.h` in your source files and compile the library with your source files.\n\n```c\n#include \"libft.h\"\n\nint main(void)\n{\n    char *str = \"Hello, World!\";\n    ft_putstr_fd(str, 1);\n    return (0);\n}\n```\n\n## Built Using\n\n- [C](https://en.wikipedia.org/wiki/C_(programming_language)) - Programming language\n- [Make](https://en.wikipedia.org/wiki/Make_(software)) - Build automation tool\n\n## Authors\n\nThis project was developed by:\n\n| \u003cimg src=\"https://avatars.githubusercontent.com/u/88089961?v=4\" alt=\"drawing\" width=\"50\"/\u003e |[LudwigAndreas](https://github.com/LudwigAndreas)|\n| --- | --- |\n\n## Acknowledgements\n\n- [School 21](https://21-school.ru/) - Educational institution\n\n## License\n\nThis project is licensed under the School 21 License - see the [LICENSE](LICENSE) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fludwigandreas%2Flibft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fludwigandreas%2Flibft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fludwigandreas%2Flibft/lists"}