Do you know that? Elance top skills: PHP, HTML, MySQL, Graphic Designer, Article Writing next

How can you determine the size of an allocated portion of memory?

You can't, really.  free() can, but there's no way for your program to know the trick free() uses.