writing stuff like ctrl+z on a port
i am opening my modem port with fopen and the write at commands to it using fprintf. however. to terminate a certain line of text i need to send a ctrl+z (that means that if i do it manualy in a terminal i enter the commandline and the text and then press ctrl-z). how can i write a control-z on the port? i thougt that is a special escape sequence or i could do anything with the ascii table, but i didn't find anything.
thank you for helping