I am writing a WSTP application in C, and would like to "receive" a list from Mathematica, however, it should be able to handle multiple datatypes (i.e. int, real, etc.); is there a way to do this with a single function or I need to write a function per datatype, i.e.
processIntegerList(int *a, long b); progressReaList(double *a, long b);
If this can be achieved with a single function, could you paste a snippet of code that would then identify the datatype of the list passed (we assume here that the argument is always a list).
Thank you for looking.