|
Structure in C
Hi Everyone....
I have a structure:
typedef struct
{
unsigned char command;
unsigned char data_length;
char data[MAX_DATA_LENGTH];
}PACKET;
My problem is that,I want to use a function here...
When i assign values to these variables they are as:
COMMAND,20,'S'...........
I want to call a function here..or assign a function value here........
as,
COMMAND,20,make().........
is it possible to do so...
Thanks ...
Divya
|