How do i convert a char * to a number
like char * to int ???
and int to char * ???
do i have to program the commando or c got one?
(btw where do i ask question about borland c v3.1, here? or in other forum??)
How do i convert a char * to a number
like char * to int ???
and int to char * ???
do i have to program the commando or c got one?
(btw where do i ask question about borland c v3.1, here? or in other forum??)
MADSmile
ICQ #3653692
(i'm running Borlad C++ Ver 3.1 under MSDOS)
char *s = "123";
int i = atoi(s);
char ........ = itoa(i);
Guess you could ask the Borland q here....
kooma - [email protected]
Are you trying to convert a string (like "1234") to a number, or are you trying to get the address of the string?
If you are trying to do the latter, then:
enjoy.Code:char *myString; long myNum; myString = 0x00A70388; myNum = (long)myString;