Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void add_node_on_end(NODE **phead, NODE **ptail, NODE *pnew) {
- if ((*phead) == NULL) {
- (*phead) = pnew;
- }
- else {
- (*ptail)->pnext = pnew;
- }
- (*ptail) = pnew;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement