I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
Index »

converting from char * to int on result from strtok

john\′s Photo
19 Mar 11, 11:31PM
converting from char * to int on result from strtok
A char pointer refers to the start memory address of a string. You can't directly transfer to an int.

However, it your trying to convert a string (ie "123.42") then you can use atoi for integers or atof for real numbers
Currently you need to be logged in to leave a message.