Why is ht_put()
receiving val as a void?
printf("\n\n\tEnter name: "); // <- this does not work, all names get same phone number
Add fflush(stdout);
after the printf()
to display it if it isn't working. Your input is being buffered...
Also, see this series about scanf()
and what to use instead.