Implementation of sscanf

tonmoy80's Avatar, Join Date: Apr 2007
Newbie Member
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
0
DaWei's Avatar, Join Date: Dec 2006
Team Leader
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.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
As I see sscanf, it has one good options of variable number of arguments.

I have already written one article OutputDebugString with variable number of arguments 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.
0
tonmoy80's Avatar, Join Date: Apr 2007
Newbie Member
Dear DaWei,

Thanks for your reply.
I could not understand what you mean by the statement:
Quote:
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.
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