int a = atoi ("56");
long int b = strtol ("56", NULL, 10);
edit: read the man or info pages ("man atoi", "man strtol", "info libc" (or use tkinfo as its easies to use I think) arithmetic functions->parsing of integers)
Last edited by SciYro; 04-20-2008 at 01:34 AM.
|