Some help with reading in integers (C)

Associate
Joined
14 Jun 2009
Posts
1,568
At the moment I have the following that reads in a string:

edit

Is there any way of using that to read in an integer value instead? I'm a bit lost with this at the moment!
 
Last edited:
Associate
Joined
29 Jan 2008
Posts
849
int stock = atoi(readString("Enter the current stock level for the item: "));
 
Top