Re: [Libphidget-devel] At loss with C... - fixed
Status: Alpha
Brought to you by:
jstrohm
|
From: Vadim T. <vt...@fr...> - 2002-09-07 21:51:10
|
According to Jack Strohm:
> > Yep, it was a C++ artifact - the declaration block should've been before the
> > code...
>
> What do you mean?
C requires *all* the variable declarations to go before the code, so now it
looks like this:
int t,count;
struct phidget **phidgets;
printf("----------------------------------------\n");
printf("Phidgets Device driver test.\n\n\n");
// Initialize libphiget, here is where the devices are actually retrieved by the library
// We want the library to handle signals (passing it 1)
phidgetInit(1);
// Get an array of pointers to phidgets and a count of available phidgets
phidgets=phidgetGetPhidgets(&count);
--vt
|