How to obtain value from a void fucntion?
I want to use a predefined function which is called in the  main function. This predefined function obtains some values from a packet received, lets say a timestamp from the receiver which I would like to use in the main function. However the problem is that this predefined function is of void type and cant return anything. I am thing about using the concept of global variables because local variables would fail in this case. Can someone please give an example for implementing this thing?
How to obtain value from a void fucntion?
===

I want to use a predefined function which is called in the  main function. This predefined function obtains some values from a packet received, lets say a timestamp from the receiver which I would like to use in the main function. However the problem is that this predefined function is of void type and cant return anything. I am thing about using the concept of global variables because local variables would fail in this case. Can someone please give an example for implementing this thing?