I have a list of structures and I want to delete some of them. I don't want to leave any empty space where the structures are deleted. I tried it with this code, but it didn't work.
struct symtab *sp;
for(sp = symtab; sp < &symtab[NSYMS]; sp++)
if(sp->scope == scope) // delete
{
sp = sp+1;
}