I have the same problem i am trying to delete a part of a linked list I have the code

Code:
void deleteitem(struct list *fly)
{
	int deletenumber;
	int count=0;

	scanf("%i", &deletenumber);
	
	goto_head(fly);

	for(count = 0 ; count == deletenumber ; count ++)
        {
			goto_next(fly);
			
	}

			delete(fly);
				
		
}
and I don't know how to delete an item out of the linked list at the location deletenumber, this code keeps taking the first part out can some one tell me what i need to fix it.