Character to Decimal Conversion

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Character to Decimal Conversion

3,709 次查看
GangaPrasad
Contributor I
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)
0 项奖励
回复
1 回复

570 次查看
alex_spotw
Contributor III
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
0 项奖励
回复