malloc size

L

Lawrence Kirby

Let me assume it done somewhere in a library and im using it... then
how do i know... ???

If you mean how do you know how big an object allocated by a library is
then the answer is that you don't unless the library provides a
specification or programmatic means to tell you. If a library returns a
pointer to an allocated object there should be a clear specification of
what you can do with it. Trying to find out information that it doesn't
tell you is probably an error.

Lawrence
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,883
Members
47,415
Latest member
SharonCran

Latest Threads

Top