It isn´t still working as i want, when i have like "Dir1;Dir2;Dir3", even with the strcmp, it thinks that there is no ';', so it don´t download only "Dir1", but download all the string.
Code:
typedef struct {
float Version;
int PathNumbers;
char *Paths[60];
} sFile;
char *Path[60];
...
sFile *New;
ActualPath = 0;
do{
for (int i = 0;i < New->CharNumbers;i++, ActualPath++)
{
if ( strcmp(";", (const char*)New->Paths) == 0 )
{
ActualPath++;
i++;
goto Download;
}
Path[i] = New->Paths[i];
}
Download:
if ( pDownloader->DownloadFile( (const char*)Path, (const char*)Path ) != 0 )
return ERROR;
}while ( ActualPath < New->CharNumbers );