while((*stopoverlist)[++elements]!=0);
(*stopoverlist)=(stopoverdef**)realloc((*stopoverlist),sizeof(stopoverdef)*(elements+2));
(*stopoverlist)[elements]=(stopoverdef*)malloc(sizeof(stopoverdef));
if((*addstopover)[0]->str[(*addstopover)[0]->length-1]==')'){
(*addstopover)[0]->str[(*addstopover)[0]->length-1]=0;
(*addstopover)[0]->length--;
(*addstopover)[0]->buffer_size--;
}
(*stopoverlist)[elements+1]=0;
// (*stopoverlist)[elements+1]=0; - und weg damit
(*stopoverlist)[elements]->stopoverairports=0;
xstring_split(&(*addstopover)[0]->str[2],'-',&(*stopoverlist)[elements]->stopoverairports,STRICT_SPLIT_STR);
xstring_print_r(&(*stopoverlist)[elements]->stopoverairports); |