User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 423,449 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,787 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser: Programming Forums

FILE + conversion from dec to hex = I need help

Join Date: Oct 2006
Location: Montenegro
Posts: 23
Reputation: Sin-da-cat is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Sin-da-cat Sin-da-cat is offline Offline
Light Poster

Re: FILE + conversion from dec to hex = I need help

  #10  
Nov 12th, 2006
Originally Posted by Ancient Dragon View Post
like I mentioned in my previous post, printf() family of functions, which includes ssprintf(), will convert int to hex using "%X".

I'm not supposed to use any functions I'm not familiar with because I can't use them at my exam either. And my teacher never mentioned ssprintf, all I know out of that family is printf and fprintf.

Originally Posted by Ancient Dragon View Post
If you use that in dek_hex() you will have to change the return value from char to char* because as you can see from the above code snippet the hex value is an array of characters, not a single character value.

Yes, I'll do that. That was stupid of me.
In the twilight zone we disperse cowards//
vampires that stalk Earth on reverse hours - Jus Allah

And on top of that they still wanna take me to prison//
just cause I won't trade humanity for patriotism - Immortal Technique
Reply With Quote  
All times are GMT -4. The time now is 2:44 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC