Hi all!
I'm having a trouble to exclude (substitute with the next string) repeated strings from an array:

Code:
char hst[30][30];  /* stored strings */
int qt_hst; /* amount of strings at hst */
int rptds[10]; /* store which lines numbers are repeated strings */
int a, b; 
...

a = b = 0;
while (b = rptds[a])
{
	for (b; b<=qt_hst; b++)
		strcpy(hst[b-a], hst[b-a+1]);
	a++; qt_hst--;
}
But this code don't work properly. Mainly if the rptds[x] > rptds[x+1]