Whatever woiks, see my sig

. I judge you'd be interested in exploring the means by which your compiler passes values to, and returns values from, functions. It comes in handy in mixed-language programming. I can't really discern your level of familiarity from the posts thus far; if you'd like some material on a generic (but fairly common), stack-based method, I can probably dig something up.