Rules for c section

What do you have to do for a c section? Is it you can't eat for 12 hours before or is it 8? Am I allowed to swish water in my mouth without swallowing it? I had a letter with this stuff but I misplaced it 😞