diff --git a/message_helpers.c b/message_helpers.c index 9f1a351..ccf7d8a 100644 --- a/message_helpers.c +++ b/message_helpers.c @@ -2,7 +2,7 @@ #include "message_helpers.h" -char* user_string(char* message) { +char* fetch_dest_user_string(char* message) { char* token = malloc (sizeof(char) * strlen(message)); token = strtok(message," \r\n"); if (strcmp(token,"TO:") == 0) { diff --git a/message_helpers.h b/message_helpers.h index 5346421..d17e935 100644 --- a/message_helpers.h +++ b/message_helpers.h @@ -3,4 +3,4 @@ /* If the message contains a string of the form: TO: then return 'Username' */ -char* user_string(char* message); +char* fetch_dest_user_string(char* message);