Hello All !
In a program I want to use a ini file. I've got a predefined function that
reads the value and stores it in a string (char str[2])
But the value is a number is an I want to convert it to a integer. How can I
do that. I tried this:
int x=(int)str;
I also tried this:
int x=(int)*str
But if for example value=10 then x becomes something else. How can I convert
it without changing the value?
Greetzzz,
Jo Geraerts
Fido: 2:292/120.121
E-mail: Geraerts@mail.dma.be
URL: http://bewoner.dma.be/Geraerts/index.htm
---
---------------
* Origin: DiGiTal ConTacT pint 121 (2:292/120.121)
|