Re: calling C function array pointer
- Posted by Jason Gade <jaygade at yahoo.?om> Jul 16, 2007
- 574 views
I forgot to say -- don't free your buffer before you've peeked or poked it! It would probably be best to wrap this entire thing up into one function that allocates, pokes what you need in your buffer, calls your c func, peeks what you need from your buffer, frees your buffer, and then returns your data. -- "Any programming problem can be solved by adding a level of indirection." --anonymous "Any performance problem can be solved by removing a level of indirection." --M. Haertel "Premature optimization is the root of all evil in programming." --C.A.R. Hoare j.