Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. void push(Node *head, char *v){
  2.  
  3.     Node *new;
  4.     new = malloc(sizeof(Node));
  5.     Node *last = head;
  6.  
  7.     new->value = v;
  8.     new->next = NULL;
  9.  
  10.     while(last->next != NULL){
  11.     last=last->next;
  12. }
  13.  
  14.    last->next=new;
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement