From: Janel Levon Baskerville <jlb18@duke.edu> To : Date: Sun, 31 Jan 1999 17:12:59 -0500
For some reason when I pass atoi a character it does not return a int but instead gives me a segmentation fault. Does anyone know what I am doing wrong or how to change a character to a int?? Here is an example of what I did: char g = '1'; int f = atoi(g);