Advertisement
Guest User

Untitled

a guest
May 28th, 2017
52
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_beginning(NODE **phead, NODE **ptail, NODE *pnew) {
  2. if ((*phead) == NULL) {
  3. *phead = pnew;
  4. }
  5. else {
  6. pnew->pnext = *phead;
  7. }
  8. *phead = pnew;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement