Link to home
Start Free TrialLog in
Avatar of azerty061597
azerty061597

asked on

Function available on char type...

I need a function to use on char type...

I need one to get the ascii code from a char...
(pex: ord('A')=65 or something like that)

ASKER CERTIFIED SOLUTION
Avatar of psdavis
psdavis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Booth882
Booth882

int CharToInt(char TheChar)
{
    int TheInt = TheChar;
    return TheChar;
}
whoops!  I mean

return TheInt;
Avatar of ozo
Not that it matters....