http://qs321.pair.com?node_id=1167987


in reply to Passing integer pointer in XS?

Change all of those "int *" to "int &" and I suspect it will "just work".

Update: Or, worst case, you might have to change the XS code to something like:

int tdSensor(protocol, protocolLen, model, modelLen, id, dataTypes) char * protocol int protocolLen char * model int modelLen int & id int & dataTypes CODE: RETVAL = tdSensor(protocol, protocolLen, model, modelLen, &id, &da +taTypes);

- tye