Files
chat_application/message_helpers.h

13 lines
305 B
C

/* If the message contains a string of the form:
<Indicator>: <Value>
Then return 'value' */
char* fetch_from_string(char* message, char* indicator);
/* If the message contains a string of the form:
START_OF_MESSAGE
<text>
END_OF_MESSAGE
Then return <text> */
char* fetch_message_string(char* message);