How do I get the user name of the user profile page that is being visited? I created a module and I need to use the user name of the user's profile being viewed.

How do I call/get it?
You can load a user object like this : 

$current_user = menu_get_object('user', 1);
$username = $current_user-&gt;name;


Reference of menu_get_object function.