On Thu, Jun 10, 2004 at 11:12:51 -0700, l x wrote: > What I missed and how to pass an array of struct from > one module to another? > [snap] > void modA_func_1(void * ptr) > { > A_struct *pA; > int i; > > pA = (A_struct *) kmalloc(3*sizeof(A_struct)); > > for(i=0; i<3; i++) > pA[0].i = i * 10; > > ptr = pA; > } > [snap] You have missed something from C. Learn C and then come back. ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@ucw.cz>
Attachment:
signature.asc
Description: Digital signature