#include <stdio.h>
#include <string.h>
int main()
{
int i = 0,a = 0;
char str[1000] = "BRUNNY;PR;MG;T;Câmara dos Deputados, Edifício Anexo;4;, gabinete nº;260;Brasília - DF - CEP 70160-900;3215-5260;3215-2260;08;21;dep.brunny@camara.leg.br;BRUNNY;Exma. Senhora Deputada;BRUNIELE FERREIRA GOMES";
//scanf("%[^\n]s", str);
char *letra = str;
int separadores = 0;
while (*letra != '\0'){
if (*(letra++) == ';') separadores++;
}
char* palavras[separadores];
char *palavra
= strtok(str
, ";");
while (palavra != NULL){
palavras[i++] = palavra;
}
for (i = 0; i < separadores; ++i){
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBtYWluKCkKewoKICAgIGludCBpID0gMCxhID0gMDsKICAgIGNoYXIgc3RyWzEwMDBdID0gIkJSVU5OWTtQUjtNRztUO0PDom1hcmEgZG9zIERlcHV0YWRvcywgRWRpZsOtY2lvIEFuZXhvOzQ7LCBnYWJpbmV0ZSBuwro7MjYwO0JyYXPDrWxpYSAtIERGIC0gQ0VQIDcwMTYwLTkwMDszMjE1LTUyNjA7MzIxNS0yMjYwOzA4OzIxO2RlcC5icnVubnlAY2FtYXJhLmxlZy5icjtCUlVOTlk7RXhtYS4gU2VuaG9yYSBEZXB1dGFkYTtCUlVOSUVMRSBGRVJSRUlSQSBHT01FUyI7CiAgICAvL3NjYW5mKCIlW15cbl1zIiwgc3RyKTsKCiAgICBjaGFyICpsZXRyYSA9IHN0cjsKICAgIGludCBzZXBhcmFkb3JlcyA9IDA7CgogICAgd2hpbGUgKCpsZXRyYSAhPSAnXDAnKXsKICAgICAgICBpZiAoKihsZXRyYSsrKSA9PSAnOycpIHNlcGFyYWRvcmVzKys7CiAgICB9CgogICAgY2hhciogcGFsYXZyYXNbc2VwYXJhZG9yZXNdOwogICAgY2hhciAqcGFsYXZyYSA9IHN0cnRvayhzdHIsICI7Iik7CgogICAgd2hpbGUgKHBhbGF2cmEgIT0gTlVMTCl7CiAgICAgICAgcGFsYXZyYXNbaSsrXSA9IHBhbGF2cmE7CiAgICAgICAgcGFsYXZyYSA9IHN0cnRvayhOVUxMLCAiOyIpOwogICAgfQogICAgCiAgICBmb3IgKGkgPSAwOyBpIDwgc2VwYXJhZG9yZXM7ICsraSl7CiAgICAgICAgcHJpbnRmKCJcbiVzIiwgcGFsYXZyYXNbaV0pOwogICAgfQp9Cg==