{"id":48591778,"url":"https://github.com/nsmryan/c_traits","last_synced_at":"2026-04-08T20:02:11.284Z","repository":{"id":151912158,"uuid":"361003708","full_name":"nsmryan/c_traits","owner":"nsmryan","description":"A toy example of a trait like system in C with examples for iterators, scans, and memory allocators","archived":false,"fork":false,"pushed_at":"2022-03-04T14:24:02.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-01-29T10:32:31.899Z","etag":null,"topics":["allocator","c","containerof","stringbuilder","traits"],"latest_commit_sha":null,"homepage":"","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/nsmryan.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}},"created_at":"2021-04-23T20:56:09.000Z","updated_at":"2022-03-04T14:24:05.000Z","dependencies_parsed_at":"2023-05-15T16:30:26.888Z","dependency_job_id":null,"html_url":"https://github.com/nsmryan/c_traits","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"e5517d761ce3f736cb0d38400a4587ffc898e207"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nsmryan/c_traits","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsmryan%2Fc_traits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsmryan%2Fc_traits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsmryan%2Fc_traits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsmryan%2Fc_traits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nsmryan","download_url":"https://codeload.github.com/nsmryan/c_traits/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsmryan%2Fc_traits/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31571601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["allocator","c","containerof","stringbuilder","traits"],"created_at":"2026-04-08T20:02:10.717Z","updated_at":"2026-04-08T20:02:11.276Z","avatar_url":"https://github.com/nsmryan.png","language":"C","readme":"# Traits in C\nThis repository contains a simple implemntation of a trait-like abstraction in C.\n\nThe code is meant to be self contained and simple, not production at all. This is\njust an exploration and example for learning.\n\n\nThe code can be compiled manually:\n\n```bash\ngcc alloc.c -o alloc\ngcc iter.c -o iter\ngcc scan.c -o scan\n```\n\n\nSee my blog post on [itscomputersciencetime](https://itscomputersciencetime.netlify.app/c-traits/) for\nmore project details, and see the code for the implementation details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsmryan%2Fc_traits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsmryan%2Fc_traits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsmryan%2Fc_traits/lists"}