Changed function name
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include "message_helpers.h"
|
#include "message_helpers.h"
|
||||||
|
|
||||||
char* user_string(char* message) {
|
char* fetch_dest_user_string(char* message) {
|
||||||
char* token = malloc (sizeof(char) * strlen(message));
|
char* token = malloc (sizeof(char) * strlen(message));
|
||||||
token = strtok(message," \r\n");
|
token = strtok(message," \r\n");
|
||||||
if (strcmp(token,"TO:") == 0) {
|
if (strcmp(token,"TO:") == 0) {
|
||||||
|
@@ -3,4 +3,4 @@
|
|||||||
/* If the message contains a string of the form:
|
/* If the message contains a string of the form:
|
||||||
TO: <Username>
|
TO: <Username>
|
||||||
then return 'Username' */
|
then return 'Username' */
|
||||||
char* user_string(char* message);
|
char* fetch_dest_user_string(char* message);
|
||||||
|
Reference in New Issue
Block a user