long integers in C

I want somehow to implement in ANSI C an abstract data type for very long integers. A secure limit would be around 100!, which means even 64bit numbers can be insufficient.
If anybody has a link to a site with source code I'd be grateful.

Thanks in advance,
john
jonn_gAsked:
Who is Participating?
 
DarthModConnect With a Mentor Commented:
PAQed with points refunded (175)

DarthMod
Community Support Moderator
0
 
ozoCommented:
0
 
fridomCommented:
lcc-win32 provides among others int128 and bignums.

Regards
Friedrich
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
jonn_gAuthor Commented:
I am developing this program in Fedora Core 5 linux system and I'd prefer if someone could provide a working source code just for the ADT BigNumber and not a whole C library.
0
 
fridomCommented:
Would you mind to explain me the difference?  What's different form working source code and a C library? In what way would you expect the sources? Object files?

Friedrich
0
 
ozoCommented:
The GMP library does provide source code.
0
 
jonn_gAuthor Commented:
Well creating variables that are of long double type I managed to compute even 100! with a classic recursive factorial function. So to be honest, there is no problem anymore and I didn't use any of your answers...
0
 
ozoCommented:
long double type won't be able to tell the difference between 100! and 100!+1, but if you don't require that, that's fine.
0
All Courses

From novice to tech pro — start learning today.