{"id":16692948,"url":"https://github.com/rdbo/universal-combinations","last_synced_at":"2025-08-31T14:37:46.532Z","repository":{"id":118702500,"uuid":"426815299","full_name":"rdbo/universal-combinations","owner":"rdbo","description":"Universal Combinations Algorithm in C","archived":false,"fork":false,"pushed_at":"2021-11-11T00:02:34.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-21T05:42:40.835Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rdbo.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":"2021-11-11T00:00:18.000Z","updated_at":"2021-11-12T14:31:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"360164ec-764d-49b0-93ec-0855b649bb1f","html_url":"https://github.com/rdbo/universal-combinations","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rdbo/universal-combinations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbo%2Funiversal-combinations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbo%2Funiversal-combinations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbo%2Funiversal-combinations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbo%2Funiversal-combinations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdbo","download_url":"https://codeload.github.com/rdbo/universal-combinations/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbo%2Funiversal-combinations/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269067438,"owners_count":24354273,"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-08-06T02:00:09.910Z","response_time":99,"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":[],"created_at":"2024-10-12T16:28:56.451Z","updated_at":"2025-08-06T11:10:37.884Z","avatar_url":"https://github.com/rdbo.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Universal Combinations Algorithm in C\n```c\nint main()\n{\n\tchar carr[] = { 'a', 'b', 'c', 'd' };\n\tint iarr[] = { 1, 2, 3, 4, 5, 6, 7 };\n\tsize_t n;\n\n\tn = 2;\n\tcombinations(carr, ITEMSIZE(carr), ARRLEN(carr), n, callback_char, (void *)\u0026n);\n\tprintf(\"--------------------\\n\");\n\tn = 6;\n\tcombinations(iarr, ITEMSIZE(iarr), ARRLEN(iarr), n, callback_int, (void *)\u0026n);\n\n\treturn 0;\n}\n```\nResult:\n```\n{ 'a' 'b' }\n{ 'a' 'c' }\n{ 'a' 'd' }\n{ 'b' 'c' }\n{ 'b' 'd' }\n{ 'c' 'd' }\n--------------------\n{ 1 2 3 4 5 6 }\n{ 1 2 3 4 5 7 }\n{ 1 2 3 4 6 7 }\n{ 1 2 3 5 6 7 }\n{ 1 2 4 5 6 7 }\n{ 1 3 4 5 6 7 }\n{ 2 3 4 5 6 7 }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdbo%2Funiversal-combinations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdbo%2Funiversal-combinations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdbo%2Funiversal-combinations/lists"}