#include <stdio.h>
#include <string.h>

char tag_db_html[2000][100];

void splits_str(char string[],char splits[]){
    int z=0;
    char *ptr;
    ptr = strtok(string, splits);
    while(ptr != NULL) {
        strcpy(tag_db_html[z],ptr);
        ptr = strtok(NULL, splits);
        (z)++;
    }
}

int main(void) {
	char string[] = "blah bluh blupp diedupp";
	splits_str(string, " ");
	for(int i=0; i<4; ++i)
	  puts(tag_db_html[i]);
	return 0;
}
