Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Examples of format strings for scanf/printf ?

3 views
Skip to first unread message

6079 SmithW

unread,
Sep 30, 2002, 1:55:24 AM9/30/02
to
Where can I find examples of format strings for printf/scanf ?
(Needed for testing porpoises!)

/C curious

Richard Heathfield

unread,
Sep 30, 2002, 2:40:25 AM9/30/02
to
6079 SmithW wrote:
>
> Where can I find examples of format strings for printf/scanf ?

Get hold of a copy of Kernighan and Ritchie's "The C Programming
Language", 2nd edition. Check the index for "printf" and "scanf".
Especially examine pages 244 and 246. Then write your own examples. :-)

> (Needed for testing porpoises!)

I suppose that teaching porpoises to program in C is one way to find out
whether they really /are/ intelligent.

--
Richard Heathfield : bin...@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton

Peter Nilsson

unread,
Sep 30, 2002, 7:39:41 AM9/30/02
to
"Richard Heathfield" <bin...@eton.powernet.co.uk> wrote in message
news:3D97F1D9...@eton.powernet.co.uk...

> 6079 SmithW wrote:
> >
> > Where can I find examples of format strings for printf/scanf ?
>
> Get hold of a copy of Kernighan and Ritchie's "The C Programming
> Language", 2nd edition. Check the index for "printf" and "scanf".
> Especially examine pages 244 and 246. Then write your own examples. :-)
>
> > (Needed for testing porpoises!)
>
> I suppose that teaching porpoises to program in C is one way to find out
> whether they really /are/ intelligent.

/Whether/ they're intelligent?! What will the humans be doing when the
Vogon's arrive...? :-)

--
Peter [refusing to ask how porpoises pronounce 'char']


Jonas Lindström

unread,
Sep 30, 2002, 7:58:05 AM9/30/02
to
6079 SmithW <not_a...@orwell.org> spoke unto comp.lang.c and
said:

> Where can I find examples of format strings for printf/scanf ?
> (Needed for testing porpoises!)
>
> /C curious

http://www.google.com/search?q=printf+scanf+format+string

--
Use spaces instead of tabs.

pete

unread,
Sep 30, 2002, 8:07:04 AM9/30/02
to
Peter Nilsson wrote:

> --
> Peter [refusing to ask how porpoises pronounce 'char']

"J'n'ntonyx"

--
pete

6079 SmithW

unread,
Oct 1, 2002, 11:02:47 AM10/1/02
to
In article <3D97F1D9...@eton.powernet.co.uk>,
bin...@eton.powernet.co.uk says...
> 6079 SmithW wrote:
> >
<snip...>
> > (Needed for testing porpoises!)
>
> I suppose that teaching porpoises to program in C is one way to find out
> whether they really /are/ intelligent.
>
They know "Sea" real good but not "C" and they make Whale size mistakes!
/Bad Speller
0 new messages