Re: [Dev-C++] Re: malloc , extra bytes ! Got even more urgent !
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: veenurs <ve...@ma...> - 2003-02-24 20:40:45
|
Hi !
Yeah Per , to quote you :
> If these limitations are bothersome, they still represents the hard
> reality.
True, I am waking up to the hard reality .Guess it's the fact that the
first language I learnt was java .Niggles me to look for more
One-Line-Solutions .
> YOU have to assign the size to a
> separate variable, in case you want to support dynamic resizing
Yup ! That's how it used to be at the institute .Pointers are how I
circumvented the problem.
It was valuable help ,all the same .Thanks !
Hi J.O. : > " Never use a strange thing (and nonportable) such _msize."
Really ? are you sure ?That's how I knew what was amiss :-).Thanks .
Hi Danny , thanks to you too . sizeof(BYTE) , or even 1 was fine there ,
I guess .
Hi Ioannis, Nice to have you coming to rescue again .Talknnig about K&R
, can you point
me to a good link on Windows directory listing ( Apart from page
2^^n on goole search, of course - I'm already hitting the NEXT link
furiously in the other window .)
BTW , Dev-CPP did give similar result with GlobalAlloc family of
function too .
Thanks again .
-Rahul
Josu Onandia wrote:
> Per is absolutely right. If you need to know the number of actual data
> bytes
> inside a buffer, you have to track it on a variable. Never use a strange
> thing (and nonportable) such _msize.
> Josu
>
>
|