one more C question ( mixedlib.e )
- Posted by cense <cense at MAIL.RU> Aug 31, 2000
- 446 views
i think this may be the last C question i have before i will release my socket wrappers for linux ( soon! almost done ). hopefully this is the case. Ok bernie ( or anyone else for that matter ), lets say i have this pointer to a struct created by mixedlib.e: <Eu code> pointer my_struct my_struct = struc ( "yada yada specs here in correct form", HIGH ) -- pretending i put some vals in my_struct <end Eu code> If i wanted to pass a C struct to a function, would i pass the *pointer* to this struct created by mixedlib.e even though the function wants the "value" not the "reference"? like this: <C code> void happy_func( struct defined_struct some_struct ); <end C code> would i just <Eu code> # with earlier declarations # c_proc( happy_func_, { my_struct } ) -- happy_func_ is a "define_c_proc" -- assumed to have been declared earlier <end Eu code> There must be something im missing here. Perhaps its my knowledge of C that lacks or my half-assed knowledge of mixedlib.e? Thanks to anyone who can help me out here. -- cense a member of the ak-software development team http://ak-software.virtualave.net/ contract work for Web Velocity IT inc. http://www.webvelocity.ca/