|
-
May 20th, 1999, 05:52 AM
#6
Re: How to convert a Cstring into a int ?
int sprintf( char *buffer, const char *format [, argument] ... );
This is the prototype for sprintf function.
So your the code below won't compile at all.
Also, you are not doing exactly what the question is.
int value;
sprintf(value, "%i", strText);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|