Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void LstInsert(struct elem *neu, struct elem *last){
- struct elem *ptr;
- if(root==NULL){
- printf("Keine Elemente vorhanden!\n");
- return;
- } else {
- ptr=root;
- while(ptr!=NULL){
- ptr=ptr->next;
- if(ptr==NULL){
- ptr=last;
- last->next=neu;
- neu=malloc(sizeof(struct elem));
- neu->Messwert=ptr->Messwert;
- neu->next=NULL;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement