pereges wrote:
[...]
> typedef struct point
> {
> float x, y;
> } point;
> point *pointinarray;
>
> pointinarray = calloc(sizeof(point), numpoints);
[...]
> The program is working for anything upto 60000 or so but fails for
> anything greater eg. 100000
"Fails", how?
Pure speculation: the calloc(), for which you do not check for
failure, is failing on large values of "numpoints".
--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody |
www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net |
www.fptech.com | <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <private.php?do=newpm&u=>