{"id":24956397,"url":"https://github.com/whjwnavy/arry_list","last_synced_at":"2026-05-03T06:41:09.461Z","repository":{"id":178270846,"uuid":"225509859","full_name":"WHJWNAVY/arry_list","owner":"WHJWNAVY","description":"c_arry_list","archived":false,"fork":false,"pushed_at":"2019-12-03T02:41:36.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T06:35:35.254Z","etag":null,"topics":["arraylist","c","database","list"],"latest_commit_sha":null,"homepage":null,"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/WHJWNAVY.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":"2019-12-03T02:09:47.000Z","updated_at":"2019-12-03T02:58:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"cbb57949-eb25-4b32-8a08-d94f92e45189","html_url":"https://github.com/WHJWNAVY/arry_list","commit_stats":null,"previous_names":["whjwnavy/arry_list"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WHJWNAVY%2Farry_list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WHJWNAVY%2Farry_list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WHJWNAVY%2Farry_list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WHJWNAVY%2Farry_list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WHJWNAVY","download_url":"https://codeload.github.com/WHJWNAVY/arry_list/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246097474,"owners_count":20723140,"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":["arraylist","c","database","list"],"created_at":"2025-02-03T06:35:14.006Z","updated_at":"2026-05-03T06:41:09.443Z","avatar_url":"https://github.com/WHJWNAVY.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# array list api\n\n## API\n\n```c\n#ifndef __ARRY_LIST_H_\n#define __ARRY_LIST_H_\n\n/*\n * Include Files\n */\n#include \u003cstdint.h\u003e\n#include \u003cstdbool.h\u003e\n/*\n * System Config Define\n */\n#define AL_TABLE_MAX        1000\n/*\n * Symbol Definition\n */\ntypedef struct al_data_e\n{\n    /* vvvv DON'T MODIFY vvvv */\n    uint32_t id;\n    /* ^^^^ DON'T MODIFY ^^^^ */\n\n    //for user, you can modify it as yourself.\n    int8_t name[20];\n}al_data_t;\n\ntypedef enum al_error_s\n{\n    AL_ERR_FAIL = -1,\n    AL_ERR_OK,\n    AL_ERR_POINT_NULL,\n    AL_ERR_DATE_EMPTY,\n    AL_ERR_TABLE_FULL,\n    AL_ERR_DATE_RANGE,\n}al_error_t;\n/*\n * Data Declaration\n */\n\n/*\n * Macro Definition\n */\n \n/*\n * Function Declaration\n */\n\n/*******************************************************************************\n *\n * Command Common Functions\n *\n ******************************************************************************/\n\n/*****************************************************************************\n 函 数 名  : al_table_init\n 功能描述  : 初始化数组列表\n 输入参数  : void  \n 输出参数  : 无\n 返 回 值  : \n\n*****************************************************************************/\nextern int32_t al_table_init(void);\n\n/*****************************************************************************\n 函 数 名  : al_table_add\n 功能描述  : 往表中增加一个元素\n 输入参数  : al_data_t *tbl  :需要增加的元素\n 输出参数  : 无\n 返 回 值  : \n\n*****************************************************************************/\nextern int32_t al_table_add(al_data_t *tbl);\n\n/*****************************************************************************\n 函 数 名  : al_table_del\n 功能描述  : 删除表中指定的元素\n 输入参数  : al_data_t *tbl  :需要删除的元素\n 输出参数  : 无\n 返 回 值  : \n\n*****************************************************************************/\nextern int32_t al_table_del(al_data_t *tbl);\n\n/*****************************************************************************\n 函 数 名  : al_table_modify\n 功能描述  : 修改表中指定的元素\n 输入参数  : al_data_t *fr_tbl  :需要被修改的元素\n             al_data_t *to_tbl  :修改后的元素的值\n 输出参数  : 无\n 返 回 值  : \n\n*****************************************************************************/\nextern int32_t al_table_modify(al_data_t *fr_tbl, al_data_t *to_tbl);\n\n/*****************************************************************************\n 函 数 名  : al_table_get_byidx\n 功能描述  : 通过索引取得表中的元素\n 输入参数  : uint32_t idx      :元素索引\n 输出参数  : al_data_t *tbl  :取得的元素值\n 返 回 值  : \n\n*****************************************************************************/\nextern int32_t al_table_get_byidx(uint32_t idx, al_data_t *tbl);\n\n/*****************************************************************************\n 函 数 名  : al_table_get_num\n 功能描述  : 获取表中元素个数\n 输入参数  : 无\n 输出参数  : uint32_t *num  :表中的元素个数\n 返 回 值  : \n\n*****************************************************************************/\nextern int32_t al_table_get_num(uint32_t *num);\n\n#endif\n\n```\n\n## DEBUG\n```bash\nAA------IDX: 0     ; ID: 0     ; NAME: XiaoMing\nAA------IDX: 1     ; ID: 1     ; NAME: XiaoMing\nAA------IDX: 2     ; ID: 2     ; NAME: XiaoMing\nAA------IDX: 3     ; ID: 3     ; NAME: XiaoMing\nAA------IDX: 4     ; ID: 4     ; NAME: XiaoMing\nAA------IDX: 5     ; ID: 5     ; NAME: XiaoMing\nAA------IDX: 6     ; ID: 6     ; NAME: XiaoMing\nAA------IDX: 7     ; ID: 7     ; NAME: XiaoMing\nAA------IDX: 8     ; ID: 8     ; NAME: XiaoMing\nAA------IDX: 9     ; ID: 9     ; NAME: XiaoMing\nAA------IDX: 10    ; ID: 10    ; NAME: XiaoMing\nAA------IDX: 11    ; ID: 11    ; NAME: XiaoMing\nAA------IDX: 12    ; ID: 12    ; NAME: XiaoMing\nAA------IDX: 13    ; ID: 13    ; NAME: XiaoMing\nAA------IDX: 14    ; ID: 14    ; NAME: XiaoMing\nAA------IDX: 15    ; ID: 15    ; NAME: XiaoMing\nAA------IDX: 16    ; ID: 16    ; NAME: XiaoMing\nAA------IDX: 17    ; ID: 17    ; NAME: XiaoMing\nAA------IDX: 18    ; ID: 18    ; NAME: XiaoMing\nAA------IDX: 19    ; ID: 19    ; NAME: XiaoMing\nAA------IDX: 20    ; ID: 20    ; NAME: XiaoMing\nAA------IDX: 21    ; ID: 21    ; NAME: XiaoMing\nAA------IDX: 22    ; ID: 22    ; NAME: XiaoMing\nAA------IDX: 23    ; ID: 23    ; NAME: XiaoMing\nAA------IDX: 24    ; ID: 24    ; NAME: XiaoMing\nAA------IDX: 25    ; ID: 25    ; NAME: XiaoMing\nAA------IDX: 26    ; ID: 26    ; NAME: XiaoMing\nAA------IDX: 27    ; ID: 27    ; NAME: XiaoMing\nAA------IDX: 28    ; ID: 28    ; NAME: XiaoMing\nAA------IDX: 29    ; ID: 29    ; NAME: XiaoMing\nAA------IDX: 30    ; ID: 30    ; NAME: XiaoMing\nAA------IDX: 31    ; ID: 31    ; NAME: XiaoMing\nAA------IDX: 32    ; ID: 32    ; NAME: XiaoMing\nAA------IDX: 33    ; ID: 33    ; NAME: XiaoMing\nAA------IDX: 34    ; ID: 34    ; NAME: XiaoMing\nAA------IDX: 35    ; ID: 35    ; NAME: XiaoMing\nAA------IDX: 36    ; ID: 36    ; NAME: XiaoMing\nAA------IDX: 37    ; ID: 37    ; NAME: XiaoMing\nAA------IDX: 38    ; ID: 38    ; NAME: XiaoMing\nAA------IDX: 39    ; ID: 39    ; NAME: XiaoMing\nAA------IDX: 40    ; ID: 40    ; NAME: XiaoMing\nAA------IDX: 41    ; ID: 41    ; NAME: XiaoMing\nAA------IDX: 42    ; ID: 42    ; NAME: XiaoMing\nAA------IDX: 43    ; ID: 43    ; NAME: XiaoMing\nAA------IDX: 44    ; ID: 44    ; NAME: XiaoMing\nAA------IDX: 45    ; ID: 45    ; NAME: XiaoMing\nAA------IDX: 46    ; ID: 46    ; NAME: XiaoMing\nAA------IDX: 47    ; ID: 47    ; NAME: XiaoMing\nAA------IDX: 48    ; ID: 48    ; NAME: XiaoMing\nAA------IDX: 49    ; ID: 49    ; NAME: XiaoMing\n--------------------------------------------------\n\nBB------IDX: 0     ; ID: 0     ; NAME: XiaoMing\nBB------IDX: 1     ; ID: 34    ; NAME: XiaoMing\nBB------IDX: 2     ; ID: 2     ; NAME: XiaoMing\nBB------IDX: 3     ; ID: 48    ; NAME: XiaoMing\nBB------IDX: 4     ; ID: 4     ; NAME: XiaoMing\nBB------IDX: 5     ; ID: 26    ; NAME: XiaoMing\nBB------IDX: 6     ; ID: 6     ; NAME: XiaoMing\nBB------IDX: 7     ; ID: 46    ; NAME: XiaoMing\nBB------IDX: 8     ; ID: 8     ; NAME: XiaoMing\nBB------IDX: 9     ; ID: 36    ; NAME: XiaoMing\nBB------IDX: 10    ; ID: 10    ; NAME: XiaoMing\nBB------IDX: 11    ; ID: 44    ; NAME: XiaoMing\nBB------IDX: 12    ; ID: 12    ; NAME: XiaoMing\nBB------IDX: 13    ; ID: 28    ; NAME: XiaoMing\nBB------IDX: 14    ; ID: 14    ; NAME: XiaoMing\nBB------IDX: 15    ; ID: 42    ; NAME: XiaoMing\nBB------IDX: 16    ; ID: 16    ; NAME: XiaoMing\nBB------IDX: 17    ; ID: 32    ; NAME: XiaoMing\nBB------IDX: 18    ; ID: 18    ; NAME: XiaoMing\nBB------IDX: 19    ; ID: 40    ; NAME: XiaoMing\nBB------IDX: 20    ; ID: 20    ; NAME: XiaoMing\nBB------IDX: 21    ; ID: 30    ; NAME: XiaoMing\nBB------IDX: 22    ; ID: 22    ; NAME: XiaoMing\nBB------IDX: 23    ; ID: 38    ; NAME: XiaoMing\nBB------IDX: 24    ; ID: 24    ; NAME: XiaoMing\n--------------------------------------------------\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhjwnavy%2Farry_list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhjwnavy%2Farry_list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhjwnavy%2Farry_list/lists"}