View previous topic :: View next topic |
Author |
Message |
YulL
Joined: 29 Sep 2004 Posts: 39 Location: Paris (France)
|
String to int16 value |
Posted: Mon Dec 20, 2004 11:14 am |
|
|
I want to convert a string (for example "1234") to a decimal integer (=1234). Is it possible ?
Thanks by advance for your answer |
|
|
mvaraujo (not logged) Guest
|
|
Posted: Mon Dec 20, 2004 11:24 am |
|
|
Check the help / manual:
see atoi(), atol(), atoi32() and atof(). |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Mon Dec 20, 2004 11:25 am |
|
|
int16 is a long in CCS. Take a look at the function atol(). |
|
|
mvaraujo (not logged) Guest
|
|
Posted: Mon Dec 20, 2004 12:55 pm |
|
|
Mark,
I think it's important to him to know that there are other options of output also!
Marcus |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Mon Dec 20, 2004 6:03 pm |
|
|
mvaraujo (not logged) wrote: | Mark,
I think it's important to him to know that there are other options of output also!
Marcus |
Then go ahead and tell him about printf, sprintf and every other routine out there |
|
|
YulL
Joined: 29 Sep 2004 Posts: 39 Location: Paris (France)
|
|
Posted: Tue Dec 21, 2004 2:31 am |
|
|
Thanks for your advice, I'm going to test it |
|
|
mvaraujo (not logged) Guest
|
|
Posted: Tue Dec 21, 2004 12:08 pm |
|
|
Quote: | Then go ahead and tell him about printf, sprintf and every other routine out there |
i don't think so, it's the opposite of he's trying to do! |
|
|
rrb011270
Joined: 07 Sep 2003 Posts: 51
|
|
|
|