All pastes #68640 Raw Edit

Something

public text v1 · immutable
#68640 ·published 2006-06-21 21:51 UTC
rendered paste body
void delentry (element* ptr, char* keyword) {
 if (ptr->next != NULL) {
  if (strcmp(ptr->wort,keyword)==0) {
   if (ptr==liste) liste=ptr->next; else previous->next=ptr->next;
   free(ptr);
  }
  else {
   previous=ptr;
   delentry (ptr->next, keyword);
  }
 }
}