Skip to content

A toy example of a trait like system in C with examples for iterators, scans, and memory allocators

Notifications You must be signed in to change notification settings

nsmryan/c_traits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Traits in C

This repository contains a simple implemntation of a trait-like abstraction in C.

The code is meant to be self contained and simple, not production at all. This is just an exploration and example for learning.

The code can be compiled manually:

gcc alloc.c -o alloc
gcc iter.c -o iter
gcc scan.c -o scan

See my blog post on itscomputersciencetime for more project details, and see the code for the implementation details.

About

A toy example of a trait like system in C with examples for iterators, scans, and memory allocators

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages