Dear Experts
I have the following Structure
Code:
typedef struct wf_list_workunit_fe  
                {
                                short int nbr_Workunits_fe;
                                [size_is(nbr_Workunits_fe)] WF_STRUCT_WORKUNIT_FE  lst_Workunit_fe[*];
                } WF_LIST_WORKUNIT_FE;
and 
typedef [ptr] WF_LIST_WORKUNIT_FE * WF_LIST_WORKUNIT_P_FE;
and Now Im doing this 
WF_LIST_WORKUNIT_FE listWU;
memset((void*)&listWU, '\0' , sizeof(WF_LIST_WORKUNIT_FE));
WF_LIST_WORKUNIT_P_FE ptrlistWU ;
ptrlistWU = &listWU;
Is this correct ?

Last edited by shabbir; 7Feb2009 at 18:51.. Reason: Code blocks