You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
287 B
C

#include <easysock.h>
#include "message_helpers.h"
char* fetch_address(char* message) {
char* token = malloc (sizeof(char) * strlen(message));
token = strtok(message," \n");
if (strcmp(token,"TO:") == 0) {
token = strtok(NULL," \n");
} else {
return NULL;
}
return token;
}