|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Typedef Struct as function input
Is there a way to have typedef struct's as input to a function? EG:
Code:
void Function(typedef struct data)
{
printf("%s \n", data.something);
}
typedef struct{
int blah;
} typedef_example;
typedef_example data;
data.blah = 1;
Function(data);
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TTL port to a serial port on a demo board | ImmortalAres | Programming | 16 | 09-07-2005 23:44 |
| Accelerometer code | ImmortalAres | Programming | 28 | 04-06-2005 01:02 |
| Auton + Functions | ten3brousone | Programming | 0 | 27-02-2005 20:11 |
| RoboEmu2(code simulator)--now with C! | rbayer | Programming | 23 | 17-02-2005 09:17 |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |