Results 1 to 2 of 2
is there anyway to cast a 'char' type into a 'int' type in the Kernel?
like 'atoi'....
Thank you....
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-16-2005 #1Just Joined!
- Join Date
- Sep 2005
- Posts
- 11
type cast in Kernel
is there anyway to cast a 'char' type into a 'int' type in the Kernel?
like 'atoi'....
Thank you.
- 12-09-2005 #2
Well since a char really is a very small int, you can get the numeric value of it by just using it like an int, or just casting it
.Code:(int) foo


Reply With Quote
