Playing around with functional constructs in C.