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