A
Amit Limaye
This is wht i want to do
typedef struct _notificationdataformat_ {
char *m_OID;
char **m_OIDList;
f1 funcptr;
} NOTIFICATIONDATAFORMAT;
NOTIFICATIONFORMAT OIDLIST[] = {
{ "temp",{"temp1","temp11"},&func1},
{ "temp2",{"temp21","temp22","temp23"},&func2}
};
The compiler does not compile this code and comes up with the error
initializer for scalar variable requires one element
Is there way around this or wht i m doing is completely wrong
typedef struct _notificationdataformat_ {
char *m_OID;
char **m_OIDList;
f1 funcptr;
} NOTIFICATIONDATAFORMAT;
NOTIFICATIONFORMAT OIDLIST[] = {
{ "temp",{"temp1","temp11"},&func1},
{ "temp2",{"temp21","temp22","temp23"},&func2}
};
The compiler does not compile this code and comes up with the error
initializer for scalar variable requires one element
Is there way around this or wht i m doing is completely wrong