I find myself reusing components in several projects, then test & documentation is even more important of course. I formalised a layout for these components as "C99 sushi", there are a few here: http://soliton.vm.bytemark.co.uk/pub/jjg/en/code/c99-sushi/
Mostly maths stuff, possibly interesting?