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 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
Closed Thread
Join Date: Aug 2004
Posts: 3
Reputation: policeachan is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
policeachan policeachan is offline Offline
Newbie Poster

News Source code for printf, scanf, cin, cout?

  #1  
Aug 7th, 2004
dennis richie made c language with only 32 keywords all the functions and statements are to be created by the programer. if so wher is the source code of "printf" "scanf" "cin" "cout" ?
AddThis Social Bookmark Button
 
Join Date: Apr 2004
Posts: 3,755
Reputation: Dave Sinkula is a glorious beacon of light Dave Sinkula is a glorious beacon of light Dave Sinkula is a glorious beacon of light Dave Sinkula is a glorious beacon of light Dave Sinkula is a glorious beacon of light Dave Sinkula is a glorious beacon of light 
Rep Power: 17
Solved Threads: 147
Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: Source code for printf, scanf, cin, cout?

  #2  
Aug 7th, 2004
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.
 
Join Date: Oct 2006
Posts: 4
Reputation: sriz6teen is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sriz6teen sriz6teen is offline Offline
Newbie Poster

Re: Source code for printf, scanf, cin, cout?

  #3  
Feb 17th, 2008
hi all,
can any one help yar its very urgent ............

where is the code for printf and scanf fucntions...

how they will work
 
Join Date: Dec 2006
Posts: 1,569
Reputation: Aia is a splendid one to behold Aia is a splendid one to behold Aia is a splendid one to behold Aia is a splendid one to behold Aia is a splendid one to behold Aia is a splendid one to behold Aia is a splendid one to behold 
Rep Power: 12
Solved Threads: 114
Aia's Avatar
Aia Aia is offline Offline
Posting Virtuoso

Re: Source code for printf, scanf, cin, cout?

  #4  
Feb 17th, 2008
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.
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: mitrmkar is a jewel in the rough mitrmkar is a jewel in the rough mitrmkar is a jewel in the rough mitrmkar is a jewel in the rough 
Rep Power: 6
Solved Threads: 184
mitrmkar mitrmkar is offline Offline
Practically a Posting Shark

Re: Source code for printf, scanf, cin, cout?

  #5  
Feb 17th, 2008
Originally Posted by sriz6teen View Post
where is the code for printf and scanf fucntions...

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: SergioQ is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
SergioQ SergioQ is offline Offline
Light Poster

Re: Source code for printf, scanf, cin, cout?

  #6  
Feb 25th, 2008
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.
 
Join Date: Feb 2008
Posts: 1
Reputation: bolareq is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bolareq bolareq is offline Offline
Newbie Poster

Re: Source code for printf, scanf, cin, cout?

  #7  
Mar 3rd, 2008
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?
 
Join Date: Sep 2004
Posts: 6,515
Reputation: Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of 
Rep Power: 31
Solved Threads: 489
Super Moderator
Narue's Avatar
Narue Narue is offline Offline
Expert Meanie

Re: Source code for printf, scanf, cin, cout?

  #8  
Mar 3rd, 2008
I can easily see this thread being kept alive for four more years with "me too!" posts, so I'm closing it.
I'm here to prove you wrong.
 
Closed Thread

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C Forum

All times are GMT -4. The time now is 3:12 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC