RE:
How can I return multiple values from a function?
Either pass pointers to several locations which the function can fill in or have the function return a structure containing the desired values or (in a pinch) consider global variables.This solution is taken from comp.lang.c faqLink:http://www.eskimo.com/~scs/C-faq/q20.1.html