Advertisement
Guest User

Untitled

a guest
May 28th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. void add_node_on_end(NODE **phead, NODE **ptail, NODE *pnew) {
  2. if ((*phead) == NULL) {
  3. (*phead) = pnew;
  4. }
  5. else {
  6. (*ptail)->pnext = pnew;
  7. }
  8. (*ptail) = pnew;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement