You should start compiling with warnings on. You are missing an argument to your fprintf call. Even if this is an example, you seem to be making this same mistake over and over in your use of...