Brushing up some C/C++