The best c code ever