Problem passing array to a function

In the C language, a variable that is declared as an array is the same as pointer.
So uptimeinfo is a pointer to the array uptimeinfo[4] and you can call the uptime function as follows:
uptime(uptimeinfo); // pass a pointer to the uptimeinfo array

There may be an easier way to do what you want, why not post the code in uptimeinfo with a brief description of the purpose of that function