I am writting a program which receives args on the command line. Before they can be used however they must be converted to ints. I am using vc++ express edition and I have tried the _strtoi64 function but I cannot get the parameters to this function right. It is specifically the second parameter of this function which gives problems. Is asks for a ** char to show what should stop the function scanning for numbers to convert to int. The problem is that, being new to c++, I have no idea what to pass as a second parameter. I have just secured some sort of grip on pointer but this double pointer like syntax is a bit much just now. In addition the first parameter is just a number in char form. Why cant the function just read the first parameter to its end and then return the converted int when it encounters the end? Can someone please show me to use this function correctly or perhaps tell me of another one which is easier to use?
quintoncoert 131 Posting Whiz in Training
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
jaepi 22 Practically a Master Poster
vijayan121 1,152 Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.