Guest User

Untitled

a guest
Jun 22nd, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. hydra *add(hydra *head1, int v)
  2. {
  3. hydra * p_new = (hydra*)malloc(sizeof(hydra));
  4. p_new -> value = v;
  5. p_new -> next = NULL;
  6. if (head1 ==NULL)
  7. {
  8. return p_new;
  9. }
  10. else
  11. {
  12. p_new->next = head1;
  13. return p_new;
  14. }
  15. }
Add Comment
Please, Sign In to add comment