Character to Decimal Conversion
‎08-02-2006
05:12 PM
3,803 Views

GangaPrasad
Contributor I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everybody,
I am pretty new to this forum.
Can anybody know how to convert character to decimal in codewarrior development studio(in C).
Hope I asked my question in a right way.
Thanks,
Ganga
1 Reply
‎08-02-2006
07:34 PM
664 Views

alex_spotw
Contributor III
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
Like in any ANSI C compiler, you have access to the functions atoi() (in the library stdlib.h), which takes a string as argument and returns the equivalent integer (int) value:
int StringToInteger( char *str)
{
return atoi(str);
}
Regards,
Alex
Like in any ANSI C compiler, you have access to the functions atoi() (in the library stdlib.h), which takes a string as argument and returns the equivalent integer (int) value:
int StringToInteger( char *str)
{
return atoi(str);
}
Regards,
Alex
