How to seperate frame for stop and wait C program?

I know how to write the code for the transmission of a file from Tx to Rx.
But I don't know how to seperate the frame (information characters = 25 per frame) and calculate BCC using C.
Can anyone help me to write the function?
Thank you!!
Topic archived. No new replies allowed.