Yes, it's off-topic (I shouldn't post it here eighter, I'm sorry).
>
> I have following problem: When I compile this program
It's sloppy programme:
With efence, and changeing the declaration
for stor to "long *stor", and mallocing
the longs in main(), I saw: that at the end of the
xprint routine, the following assignment was made (at the end).
stor[(int(++loc)] = m,
with loc being 21. This is out-of bound, I'm sorry.
Aloccating 10000 bytes for stor makes everything OK.
(at least for 4000 digits).
Posting it to linux-kernel anyway so that other pepole don't waist time
on this. (You're reading linux-kernel sorted by thread, anyway, dont' you?)
Cheers,
-- joost witteveen joost@rulcmc.leidenuniv.nl joostje@debian.org-- Use Debian/GNU Linux!