Is there any win32 api function to retrieve an int from a string?
Is there any win32 api function to retrieve an int from a string?
In a perfect world every dog would have a home and every home would have a dog.
Visit My Web Site, Canine Programming
I use Win32 API
I'm not sure of an api function, but it can be done with stdio.h. Just get the string and then sscanf the string. The parameters would be:
sscanf(string, "%d", &newint);
But, I'm not sure of an api function.
--Garfield
1978 Silver Anniversary Corvette
Use
int atoi( const char* )
it's ANSI standard I think. Should be in one of the c headers.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.