I've been looking through the man pages but have been unable to find this: Is there any function in the C standard library to change a string value to an int? (please remind me if I'm forgetting something obvious =) Because the following does not work: char a[3] = "98; int b; b = c;