Step 1 is to learn the C language. You cannot declare functions inside another function.