[Dev-C++] Re: malloc , extra bytes ! Somewhat urgent !
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: veenurs <ve...@ma...> - 2003-02-24 00:16:28
|
Hi !
It seems too simple .But what is it !?
if( (buffer = ( PBYTE )calloc( 1000 ,sizeof(BYTE) )) == NULL ){
------
-------
}
size = _msize( buffer );
The size I get it is not 1000 , but 1008 !Same for malloc. Any
subsequent call to realloc does not add the 8 bytes,though .
[ Dev Cpp Version 4.9.7.0 ]
What's happening ?
BTW - "Generate debugging info" is OFF .
Thanks in advance .
-Rahul.
|