As practice, I'm trying to make a simple fake shell with 2 simple commands. it is also my first time using strtok. it takes a command(get or set) and a parameter to access(width, height, etc.). my problem is the third argument is a float and I'm wanting to convert it from the char * that strtok returns to the float variable that I'm trying to store it in. I'm at a loss at the moment. I used to be pretty efficient at c, but after a few years of taking a break, I'm amazed at how much of the language I've forgotten. Any help would be much appreciated. I'm not home at the moment, but if I need to I will post the code.
Thank you for your time.