Examples of format strings for scanf/printf ? 
Author Message
 Examples of format strings for scanf/printf ?

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

/C curious



Fri, 18 Mar 2005 13:55:24 GMT  
 Examples of format strings for scanf/printf ?

Quote:

> 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. :-)

Quote:
> (Needed for testing porpoises!)

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

--

"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



Fri, 18 Mar 2005 14:40:25 GMT  
 Examples of format strings for scanf/printf ?

Quote:

> > 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']



Fri, 18 Mar 2005 19:39:41 GMT  
 Examples of format strings for scanf/printf ?

said:

Quote:
> 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.



Fri, 18 Mar 2005 19:58:05 GMT  
 Examples of format strings for scanf/printf ?

Quote:

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

"J'n'ntonyx"

--
 pete



Fri, 18 Mar 2005 20:07:04 GMT  
 Examples of format strings for scanf/printf ?


Quote:

<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


Sat, 19 Mar 2005 23:02:47 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. tiny question on format of scanf and printf

2. printf/scanf format character(s) for 64 bit ints ??

3. Spaces in scanf format string

4. Constants in scanf() Format String?

5. Format string as a parameter to printf()?

6. printf format string: how bad style is this?

7. printf -*s format string

8. printf and formatting numeric strings

9. placing output of printf in memory: formatting strings

10. printf and variable length string format (asterisk)

11. Printf format strings

12. printf() format-string parser wanted!

 

 
Powered by phpBB® Forum Software