FORUM TOPIC · READ ONLY

C function call variable input size

C function call variable input size

Forum : General Remark and Questions

1 message(s) · archive en lecture seule

coolj
Hi Lubin!



We have a need to pass a constant along with a vector (mux'd array of scalars) to a C function. Our prototype would be something like this: foo(unsigned int, unsigned char*);



Is there a way to do this? In your C function call, all input ports have to have the same size. So, I can't see a way to pass both a constant and a vector to the function.



Thanks for your help, as always!



-Justin