C library for bricks