C function call variable input size

Create new topics, add your comment, remark, bugs...
Post Reply
Posts: 16
Joined: Mon Nov 29, 2010 7:31 pm

C function call variable input size

Post by coolj » Tue Aug 30, 2011 9:24 pm

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!


Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests