This commit is contained in:
benjamyn committed 2023-12-04 15:05:54 +11:00
1 parent 37427feb04
commit 9c7c9012a0
1 file changed
+9 -1
+9 -1
View File
@@ -24,7 +24,15 @@ struct Games
void parse_game_data(char *line, struct Games games)
{
printf("%s\n", line);
// printf("%s\n", line);
char *token;
const char delim[2] = ";";
token = strtok(line, delim);
printf("First token is: %s\n", token);
char *token2;
const char delim2[2] = ",";
token2 = strtok(token, delim2);
printf("Second token is: %s\n", token2);
struct Game tmpGame;
}