#include <iostream>
#include <cstring>
int main()
{
char largechars[] = "def1:def2:def3#abc1:abc2:abc3#ghi1:ghi2:ghi3";
char* chars_array = strtok(largechars, "#:");
while(chars_array)
{
// MessageBox(NULL, subchar_array, NULL, NULL);
std::cout << chars_array << '\n';
chars_array = strtok(NULL, "#:");
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0cmluZz4KaW50IG1haW4oKQp7CiAgICBjaGFyIGxhcmdlY2hhcnNbXSA9ICJkZWYxOmRlZjI6ZGVmMyNhYmMxOmFiYzI6YWJjMyNnaGkxOmdoaTI6Z2hpMyI7CiAgICBjaGFyKiBjaGFyc19hcnJheSA9IHN0cnRvayhsYXJnZWNoYXJzLCAiIzoiKTsKICAgIHdoaWxlKGNoYXJzX2FycmF5KQogICAgewovLyAgICAgICAgTWVzc2FnZUJveChOVUxMLCBzdWJjaGFyX2FycmF5LCBOVUxMLCBOVUxMKTsKICAgICAgICBzdGQ6OmNvdXQgPDwgY2hhcnNfYXJyYXkgPDwgJ1xuJzsKICAgICAgICBjaGFyc19hcnJheSA9IHN0cnRvayhOVUxMLCAiIzoiKTsKICAgIH0KfQo=