want to know

Doug Gwyn gwyn at smoke.BRL.MIL
Fri Aug 4 07:18:06 AEST 1989


In article <8487 at bsu-cs.bsu.edu> mysore at bsu-cs.bsu.edu (Swamy Bale) writes:
-   I would like to know how to convert a character into its numerical form
-(or ascii number). I used atoi function, but it takes only numerical 
-characters(If I am not wrong).
-for example :    'a' ----> should return its numerical equivalent.

The charater is already represented as its (ASCII) numerical code value.
Therefore there is no conversion necessary.



More information about the Comp.lang.c mailing list