This does not qualify as asking for help. Nobody has the time to go through your code and try to understand what the problem is. You need to be specific about what you need to do, what have you done so far and what you are having problems with

You declare home name as a global variable on line 40. You then redefine the variable elsewhere, which, according to the rules of scope, will cause the program to look at the name closest to the working code. The one with no information.

Delete the global so that you can use the other home name variables, and change your functions so that they return the variables they change. To do that you have to list the struct name before the function name, both in the prototype and definition. Read more here: Cprogramming.com Tutorial: Functions

There's also no reason to hide small programs in an attachment when you ask things about it:

We're not here to do everything for you. And while someone apparently does have time to go through your code and to try to understand the problem -- we're just not here to do all the work for you. Generally the way this works is you explain specifically what you want to do and what you can't seem to do, and we work from there.