I'm practicing with the terminal (I'm not pro). I want to get the argument then the name of the program but first I get the path. How can I skip the path and get only the first argument (argv[1])?
Path is located in Param + 8 + 18
Output:
Example terminal application
Current path: /FD/1/
Type a few letters and press enter
/FD/1/ 123
Assuming that the path is only /FD/1/ then the argument should be in Param+33 but if the path was longer than this, then you would have to calculate it manually. Could you give me some light?