What is the modern day equivalent of farcoreleft? It is still usable in Turbo C++ 3.0 but not in 4.5.
What is the modern day equivalent of farcoreleft? It is still usable in Turbo C++ 3.0 but not in 4.5.
1. Google what farcoreleft does.
2. Google keywords based on that description.
3. ???
Am I doing it right?
Quzah.
Hope is the first step on the road to disappointment.
Why do you need that?
Memory segmentation, far and near addressing, big and tiny models, etc. are all concepts long and thankfully dead. These days memory addressing is virtual, with the addresses you see being offsets from the base address of your program's memory space, not real machine addresses.
Just test the return value of malloc(), calloc() and realloc() they'll tell you fast enough if you're out of memory.
Also... since I know about the old DOS trick of grabbing all available memory... Attempting to do that on a multitasking system is very likely to crash every running program on your system...As in... "Did you really need to malloc() 32 gigs of ram?".
Use the memory you need, free it as soon as you're done with it... play fair.
Plus... if you're still playing with Turbo C or Turbo C++ ... it's time to move up to a real compiler... Pelles for C ... MinGw for C++ ...
Tish, I thot you meant something else.
{:P_?
Last edited by MK27; 09-07-2011 at 09:56 PM.
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
Don't feel bad... while the ole noggin' was digging for the answer, I flashed on this...
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge