Page 1 of 1

C function call variable input size

Posted: Tue Aug 30, 2011 9:24 pm
by 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!