Discussion

Ask HN: Interesting (small) bits of C or C++ code

Hey everyone!

I'm looking for interesting bits of C or C++ code, smaller programs or functions. That I can read and learn from.

Not looking for hello world examples, more complex. An example of "Hey thats neat" would be donut.c (http://www.a1k0n.net/2011/07/20/donut-math.html)

Anybody else know of cool little gems like this?

10 points malux85 14 years ago 6 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton