Advanced uses of printf, scanf

Write here if you have problems with your C source code

Moderator: Board moderators

Post Reply
A. M. Santos R.
New poster
Posts: 9
Joined: Sat Dec 01, 2007 1:42 am

Advanced uses of printf, scanf

Post by A. M. Santos R. » Sat Aug 09, 2008 4:36 pm

Hi, Can someone provide me a link for learning the complete reference of printf and scanf?
Thanks in advance.
It would be easy.

mf
Guru
Posts: 1244
Joined: Mon Feb 28, 2005 4:51 am
Location: Zürich, Switzerland
Contact:

Re: Advanced uses of printf, scanf

Post by mf » Sat Aug 09, 2008 6:15 pm

If you're on a Unix system (or cygwin), just type in a console:

Code: Select all

man 3 printf
man 3 scanf
If not, you can try typing that into google :)

User avatar
andmej
Experienced poster
Posts: 158
Joined: Sun Feb 04, 2007 7:45 pm
Location: Medellin, Colombia

Re: Advanced uses of printf, scanf

Post by andmej » Sun Aug 10, 2008 12:40 am

What does the 3 mean?
Runtime errors in Pascal are reported as Wrong Answers by the online judge. Be careful.

Are you dreaming right now?
http://www.dreamviews.com

mf
Guru
Posts: 1244
Joined: Mon Feb 28, 2005 4:51 am
Location: Zürich, Switzerland
Contact:

Re: Advanced uses of printf, scanf

Post by mf » Sun Aug 10, 2008 2:44 am

It's the section number. Section #3 is about C library functions.
You need to enter it here because section #1 (programs) has an entry about another printf (the program /usr/bin/printf).

See also:

Code: Select all

man man

A. M. Santos R.
New poster
Posts: 9
Joined: Sat Dec 01, 2007 1:42 am

Re: Advanced uses of printf, scanf

Post by A. M. Santos R. » Tue Aug 12, 2008 4:08 am

Thanks. Well, I need some good examples :roll:
It would be easy.

Post Reply

Return to “C”