How to make a C state machine using decision commands ( if
, else
) to cycle through a buffer received from the internet, byte by byte, in order to find the first line breaks (% ), and only then write the content? The socket part is already ok, just missing the state machine