Re: calling C function array pointer

new topic     » goto parent     » topic index » view thread      » older message » newer message

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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu