Get long value from main()

Hi
In my new program I want to get very long value(ex, 13412345236234514123523462354) as parameter from command line,and then process it.I have 2 problem :
1- what data type should I select to store this value?
2- what function can convert this value to digit.I have tried ato* (atol,atoi and so on) without any success.

thanks for any help or guidance
I would use a standard string to store this value.

I would use atoll() to convert the string to a long long.
nima's example number is too large even for a long long.

Your best bet is to get a bignum library. They are made for this kind of thing.

Here's the first one that shows up on google:

http://gmplib.org/
Topic archived. No new replies allowed.