{"id":19805691,"url":"https://github.com/remirobert/list","last_synced_at":"2025-07-11T09:39:53.880Z","repository":{"id":22093465,"uuid":"25423247","full_name":"remirobert/list","owner":"remirobert","description":"Static library list in C","archived":false,"fork":false,"pushed_at":"2014-11-03T17:57:12.000Z","size":165,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T10:47:20.245Z","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/remirobert.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}},"created_at":"2014-10-19T09:53:49.000Z","updated_at":"2018-03-02T06:05:07.000Z","dependencies_parsed_at":"2022-07-15T17:17:18.733Z","dependency_job_id":null,"html_url":"https://github.com/remirobert/list","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/remirobert%2Flist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remirobert%2Flist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remirobert%2Flist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remirobert%2Flist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remirobert","download_url":"https://codeload.github.com/remirobert/list/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251835638,"owners_count":21651685,"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-12T09:04:57.406Z","updated_at":"2025-05-01T06:31:23.976Z","avatar_url":"https://github.com/remirobert.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eList\u003c/h1\u003e\n\nThis document is written for C programmers. Since you’re reading this, chances are that you know a list is used for store items in a mutable way. This software provides complete list system.\n\nThis is just a single header file: list.h. All you need to do is copy the header file into your project, and:\n```C\n#include \"list.h\"\n```\nSince list is a header file only, you don't need to link any code. It's very portable, easy to use, and very fast integration.\n\n\u003ch4 align=\"center\"\u003eFeatures\u003c/h4\u003e\n```C\nLIST_PUSH(list, data_element, function)\nMAP_LIST(list, map_fct, arg)\nMAP_LIST_WITH_BREAK(list, map_fct, arg)\nMAP_LIST_WITH_MATCH(list, map_fct, match_fct, arg)\nDELETE_ALL_LIST(list)\nLIST_POP(list)\nLIST_REMOVE_WITH_DATA(head_list, node, match_fct)\n```\n\n\u003ch4 align=\"center\"\u003eOverview\u003c/h4\u003e\n\nEach item has a free function for free the data only.\n```C\ntypedef struct s_list t_list;\n\ntypedef struct          s_list\n{\n  void                  *data;\n  free_function         free;\n  struct s_list         *next;\n}                       t_list;\n```\nFor more informations, check out test.c.\n\nSome good features are comming, keep an eye on it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremirobert%2Flist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremirobert%2Flist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremirobert%2Flist/lists"}