|
-
Sep 21st, 2001, 04:20 PM
#1
Formatting Numbers in Strings
I'm using sprintf to print numeric & string data into a buffer.
The code i've used is sprintf(szBuf,"Size : %d bytes",&fsize)
So far so good.
How can i set up the number to be formatted to show seperators ie
What i want to display : Size : 1,128,654 bytes
What i'm able to do with sprintf : Size : 1128654 bytes
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
|