added my favourite C function of all time