Mail Archives: djgpp/1999/12/18/16:49:09
"S. M. Halloran" <mitch AT duzen DOT com DOT tr> wrote:
> Btw, I added a "return (0);" statement to main so I could see that main()
> returning normally (otherwise it returns anything in the test), or if you
> use getch() whatever it returns ('27' if you hit ESC key). I then cut out
> the 'unsigned _stklen = 1048576;' definition in the FAQ, inserted '* 8'
> (multipy by 8) between the constant and semicolon, to account for your
> particular use of stack space, ran it, and it returned zero for me,
> without generating a fault or exception.
Another way could be to declare the large array as static:
#include <conio.h>
int main()
{
static char thing[10000][400];
getch();
return 0;
}
--
george
- Raw text -