printf Format string 
Author Message
 printf Format string

Hi all,

I'd like to know if there is a way to check if a string
can be used as a format string in printf function...

ie: i get the string "%f" and i'd like to know the %f is a
valid format string...

could someone help ???

thanx in advance

Sandra



Wed, 01 Sep 2004 01:30:27 GMT  
 printf Format string
No better way than parsing the string yourself.
--
With best wishes,
    Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken


Quote:
> Hi all,

> I'd like to know if there is a way to check if a string
> can be used as a format string in printf function...

> ie: i get the string "%f" and i'd like to know the %f is a
> valid format string...

> could someone help ???

> thanx in advance

> Sandra



Wed, 01 Sep 2004 03:16:23 GMT  
 
 [ 2 post ] 

 Relevant Pages 

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

2. Printf format strings

3. printf() format-string parser wanted!

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

5. printf -*s format string

6. Examples of format strings for scanf/printf ?

7. printf and formatting numeric strings

8. placing output of printf in memory: formatting strings

9. printf and variable length string format (asterisk)

10. Source to format strings like printf()

11. STL strings & printf-type formatting

12. replacing printf with my printf, then calling C lib's printf

 

 
Powered by phpBB® Forum Software