{"id":30138322,"url":"https://github.com/nodef/extra-array.cxx","last_synced_at":"2026-04-18T19:33:19.808Z","repository":{"id":88822345,"uuid":"107179111","full_name":"nodef/extra-array.cxx","owner":"nodef","description":"Generic array in C.","archived":false,"fork":false,"pushed_at":"2025-04-10T20:00:14.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-11T01:09:57.392Z","etag":null,"topics":["array","c","cpp","extra","function","generic","merferry"],"latest_commit_sha":null,"homepage":"https://cppf.github.io/extra-array/","language":"C","has_issues":false,"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/nodef.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,"zenodo":null}},"created_at":"2017-10-16T20:25:26.000Z","updated_at":"2025-04-10T20:00:18.000Z","dependencies_parsed_at":"2025-04-14T10:45:41.421Z","dependency_job_id":null,"html_url":"https://github.com/nodef/extra-array.cxx","commit_stats":null,"previous_names":["nodef/extra-array.cxx"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nodef/extra-array.cxx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-array.cxx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-array.cxx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-array.cxx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-array.cxx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodef","download_url":"https://codeload.github.com/nodef/extra-array.cxx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-array.cxx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31982742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["array","c","cpp","extra","function","generic","merferry"],"created_at":"2025-08-11T01:06:17.416Z","updated_at":"2026-04-18T19:33:19.789Z","avatar_url":"https://github.com/nodef.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Generic array in C.\n\u003e Download: [header file](https://raw.githubusercontent.com/cppf/extra-array/master/coll/earray.h).\n\n\n## structure\n\n```c\nat : T*\nsize : size_t\n```\n\n\n## usage\n\n### declare\n\n```c\n// Declare array type.\n// This defines structure and declares functions.\nEARRAY_DECLARE(name, type)\n```\n\n```c\n// declare int array\nEARRAY_DECLARE(AInt, int)\n```\n\n\n## define\n\n```c\n// Define array type.\n// This defines functions.\nEARRAY_DEFINE(name, type)\n```\n\n```c\n// define int space\nEARRAY_DEFINE(AInt, int)\n```\n\n\n### open\n\n```c\n// Open with static memory.\n#_open(array, at, size)\n\n```\n\n```c\n// define array and char buffer\nAInt o;\nchar buffer[32];\n\n// open with buffer\nAInt_open(\u0026o, buffer, 32/sizeof(int));\n\n// print size of array\nprintf(\"%zu\", o.size);\n\n// write 0x0BADB055 at last index\no.at[o.size-1] = 0x0BADB055;\n```\n\n\n## openHeap\n\n```c\n// Open with heap memory.\n#_openHeap(array, size)\n```\n\n```c\n// open of size 64\nAInt_openHeap(\u0026o, 64);\n\n// print size of array\nprintf(\"%zu\", o.size);\n\n// write 0x600DB055 at last index\no.at[o.size-1] = 0x600DB055;\n```\n\n\n### close\n\n```c\n// Close, if opened with heap memory.\n#_close(array)\n```\n\n```c\n// close array\nAInt_close(\u0026o);\n```\n\n\n### resize\n\n```c\n// Resize if opened with heap memory.\n#_resize(array, size)\n```\n\n```c\n// open of size 128\nAInt_openHeap(\u0026o, 128);\n\n// resize to size 256\nAInt_resize(\u0026o, 256);\n\n// print size of array\nprintf(\"%zu\", o.size);\n\n// close array\nAInt_close(\u0026o);\n```\n\u003cbr\u003e\u003cbr\u003e\n\n\n[![cppf](https://i.imgur.com/eKtn1hj.jpg)](https://cppf.github.io)\n![](https://ga-beacon.deno.dev/G-RC63DPBH3P:SH3Eq-NoQ9mwgYeHWxu7cw/github.com/nodef/extra-array.cxx)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Fextra-array.cxx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodef%2Fextra-array.cxx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Fextra-array.cxx/lists"}