Hi, I need some help to finish a simple program.
I want to make it read a hex number from a command-line argument and use it as an integer, for the fseek command.
It works like this: copypart.exe infile 0x8000 outfile
The result is that everything from 0x8000 to EOF will be copied to outfile.
I know how to access the command line arguments, however I don't know how can I convert the string "0x8000" to a integer so that it can be used by the fseek command. Could someone post a pratical code exemple of how to do that?