Character to Decimal Conversion

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Character to Decimal Conversion

3,984件の閲覧回数
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 返信

845件の閲覧回数
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 件の賞賛
返信