| Date: Fri, 4 Mar 2005 12:48:07 +0000
| From: kevin lyda <kevin+dated+1110372506.52995e at ie.suberic.net>
|[ ... ]
| int sqlite_exec_printf(sqlite *db,
| char *sqlfmt,
| int (*xCallback)(void*,int,char**,char**),
| void *pArg,
| char **errmsg,
| ...) __attribute__((format(printf, 2, 6)));
tip: unless you are doing something sneaky elsewhere,
it is a good idea to use __format__ and __printf__,
i.e.: __attribute__((__format__(__printf__, 2, 6)))
because those names are less likely to be #define'd
by some idio^H^H^H^H^Hone else.
|[ ... ]
| i've read through the gcc docs and as far as i can see, i'd need to
| change gcc in order to support new % format codes. am i missing
I've always assumed --- but without research! --- that
the % codes are hardwired into gcc. in addition to
the answer to Kevin's question, I would be interested
- is it possible, without changing gcc, to remove
or redefine some of the % codes it does know?
- if it is possible to add remove or change % codes,
can that be concurrently used with the UN-altered
definitions for "real" printf(3)?
- does gcc know about the `m$' construction, as
in `%3$d' to printf the 3rd argument as `%d'?
it's never been too important, but if someone just
happens to know .... thanks.
Experienced (20+ yrs) kernel/software Eng: | Brian Foster Montpellier,
• Unix, embedded, &tc; • Linux; • doc; | blf at utvinternet.ie FRANCE
• IDL, automated testing, process, &tc. | Stop E$$o (ExxonMobile)!
Résumé (CV) http://www.blf.utvinternet.ie | http://www.stopesso.com
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!