Implementation of sscanf

Discussion in 'C' started by tonmoy80, Apr 22, 2007.

  1. tonmoy80

    tonmoy80 New Member

    Joined:
    Apr 22, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi experts,

    The C library supports sscanf() function. But I need to implement this function of my own.
    So, I need the source code / implementation of sscanf() function.

    Anybody can help me to implement the sscanf() or any source code that fully implemented sscanf.

    It would be better to get source code rather than to implement by own.

    Thnx
    Tonmoy
     
  2. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    http://www.daweidesigns.com
    Of course it is always better to get your work done for you than to bust your ***. If you can do that, you will be rich at the expense of your more skilled peers.

    Read carefully the contract with the world that sscanf has. Duplicate that. You will probably get a good grade. The alternative is to hire it done, but ZERO is a very low bid.
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    As I see sscanf, it has one good options of variable number of arguments.

    I have already written one article [thread=871]OutputDebugString with variable number of arguments[/thread] which tells you how to go about doing with the variable number of arguments. You can take help of this function to see how to get the arguments in the functions as well as substitute them at the needed place.
     
  4. tonmoy80

    tonmoy80 New Member

    Joined:
    Apr 22, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Dear DaWei,

    Thanks for your reply.
    I could not understand what you mean by the statement:
    Could you pls make it clear to me?
    From Where Can I get the source code of sscanf()? I need it very very urgent.......
    Pls help.

    Best regards
    Tonmoy
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice