Thanks Wjbender, works like a charm.

For people who want to send a string as a parameter (like for an inkey copy function), the following seems to work (though I am not sure if it is flawless code):

Code:
function inkey_copy()
{
  char* temp_char;
  temp_char = _chr(input_str);
  to_clipboard(temp_char);	
}