Hello.

I would like to put a question maybe someone could help me. I wanna create a c++ application that get's a number as a argument and does stuff with it.
Using other commandline application's I observed that most application interpret a number writen like 10 as 10 in decimal and a number as 0x10 or 0X10 as 16 in decimal/ 10 in hex.

I would like to ask if somebody do know about a library function that convert's a string, representing a number into a numerig value, taking care of the common numbering representations. I search for something like atoi() or sscanf(s,"%d") but where I don't have to specify if the string is representing a hex number or dec number .

Do you also know some document where the different numbering representation for command line application's are described ?

Thanks for your time