Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hydra *add(hydra *head1, int v)
- {
- hydra * p_new = (hydra*)malloc(sizeof(hydra));
- p_new -> value = v;
- p_new -> next = NULL;
- if (head1 ==NULL)
- {
- return p_new;
- }
- else
- {
- p_new->next = head1;
- return p_new;
- }
- }
Add Comment
Please, Sign In to add comment