function to convert hex to decimal

This is a discussion on function to convert hex to decimal within the C Programming forums, part of the General Programming Boards category; Hi, I have a string in hex and I want to convert it to decimal Thankx...

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    130

    function to convert hex to decimal

    Hi,
    I have a string in hex and I want to convert it to decimal
    Thankx

  2. #2
    Awesomefaceradcore bivhitscar's Avatar
    Join Date
    Apr 2006
    Location
    Melbourne, Australia
    Posts
    210
    How about you try to write some code first, then ask for help.
    it's ironic considerate rarity patron of love higher knowledge engulfs me...

  3. #3
    Registered User
    Join Date
    Jun 2006
    Posts
    130
    I want to know if there is any library supports/provides such function

  4. #4
    Awesomefaceradcore bivhitscar's Avatar
    Join Date
    Apr 2006
    Location
    Melbourne, Australia
    Posts
    210
    It can be done in one line with sscanf().
    it's ironic considerate rarity patron of love higher knowledge engulfs me...

  5. #5
    Registered User
    Join Date
    Jun 2006
    Posts
    130
    , thats what happens with beginners like 'me'

  6. #6
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Well 'beginner', here's a hint, that you would already know if you actually read the forum guidelines:

    search button <--- Try using that.

    This topic has come up more than once, and you'd have had your answer.


    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. dllimport function not allowed
    By steve1_rm in forum C++ Programming
    Replies: 5
    Last Post: 03-11-2008, 03:33 AM
  2. hex to binary,hex to decimal
    By groovy in forum C Programming
    Replies: 2
    Last Post: 01-25-2006, 01:14 AM
  3. Change this program so it uses function??
    By stormfront in forum C Programming
    Replies: 8
    Last Post: 11-01-2005, 07:55 AM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. qt help
    By Unregistered in forum Linux Programming
    Replies: 1
    Last Post: 04-20-2002, 09:51 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21