•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 456,488 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 2,733 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
Views: 16696 | Replies: 7
![]() |
They're found in the source code of a language implementation. That is, Borland C/C++, Microsoft Visual C++, Dev-C++, gnu, etc. (And the implementation of the C or C++ language may itself not be in C or C++.)
What you get when you use C or C++ is a defined interface that will make available to you a function printf that will behave in a well-defined manner. Whether the actual source of printf is written in C or assembly or Pascal or whatever is not supposed to matter.
What you get when you use C or C++ is a defined interface that will make available to you a function printf that will behave in a well-defined manner. Whether the actual source of printf is written in C or assembly or Pascal or whatever is not supposed to matter.
•
•
Join Date: Oct 2006
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
hi all,
can any one help yar its very urgent ............
where is the code for printf and scanf fucntions...
how they will work
can any one help yar its very urgent ............
where is the code for printf and scanf fucntions...
how they will work
Maybe this will help you understand.
Don't be afraid next time of creating a new thread when you want to ask something. People frown upon old threads that get bumped to a current active state.
Don't be afraid next time of creating a new thread when you want to ask something. People frown upon old threads that get bumped to a current active state.
Last edited by Aia : Feb 17th, 2008 at 12:03 pm.
At the very moment that I find myself in the side of the mayority, I will know that I need to re-think my ideas. ~ In my book.
•
•
Join Date: Nov 2007
Posts: 894
Reputation:
Rep Power: 6
Solved Threads: 184
One place you can start with is at the following address:
http://www.koders.com/c/fid4E0FA7894...px?s=printf#L7
That one is the GNU C's implementation. I think you probably find your way from there on to scanf. And doing a google on the file name gives more results I bet.
Last edited by mitrmkar : Feb 17th, 2008 at 1:06 pm.
•
•
Join Date: Nov 2007
Posts: 26
Reputation:
Rep Power: 2
Solved Threads: 0
Why not run your code via the debugger and when you get to the printf function step into the function. If on your machine your compiler has the full source code for the libraries (i.e. Win SDK), then you should find the code.
Maybe.
Maybe.
•
•
Join Date: Feb 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi all! I' m new in prgramming and i need the source code of scanf(). Is anybody who knows where can I find the code?
![]() |
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
activation api blogger blogs code combo dani daniweb data dell development dreamweaver drivers firefox gdata google gpl graphics html intel internet key linux microsoft module mozilla net news open open source open-source opengl product programming red hat reuse rss serial software source sun super tags ubuntu vista web windows wysiwyg xml
- explanation for source code of printf (C)
- Need Help With Printing Pascal's Triangle In C (C)
- Windows 2K source code? (Windows NT / 2000 / XP / 2003)
Other Threads in the C Forum
- Previous Thread: c language
- Next Thread: parent/child


Linear Mode