Just a simple problem here: I have a char** argv[] that holds all of my arguments…in one of these arguments, I get an integer proceeded by a %
For example:
bg %2
I really just want the integer….is there an easy way to get this?
This is for homework, so I am willing to do some more digging if anyone can prod me in the right direction.
Thanks
Here is one way to do it using
atoi: