Re: [Tutor] Passing nested structures to fcntl.ioctl

2010-03-08 Thread spir
On Mon, 8 Mar 2010 11:57:35 +0530 (IST) "Noufal Ibrahim" wrote: > Hello everyone, > I have some code that's calling fcntl.ioctl. I need to pass a nested > structure as the 3rd argument of the function. Something like this > > typedef struct coordinates{ > int x; > int y; > } coordinates;

[Tutor] Passing nested structures to fcntl.ioctl

2010-03-07 Thread Noufal Ibrahim
Hello everyone, I have some code that's calling fcntl.ioctl. I need to pass a nested structure as the 3rd argument of the function. Something like this typedef struct coordinates{ int x; int y; } coordinates; typedef struct point{ int amp; coordinates* coord; } point; How would I