Possible Duplicate:
returning multiple values from a function
I have a function which has to return two values
return(&ptr->keys[pos].value)
return Duplicate;
Here &ptr->keys[pos].value will give the address and Duplicate is a enum value set to 2... How to return these two values to another function, insert_front which is a linked list this &ptr->keys[pos].value is used as the first address for linked list. What should be the prototype of the calling function I should write?