Wrapping C that uses compiler extensions

"Jérôme M. Berger" jeberger at free.fr
Fri Mar 4 13:42:45 PST 2011


simendsjo wrote:
> 
> This code confuses me... It's from the c mysql windows dll, libmysql.dll.
> 
>   size_t (*snprintf)(struct charset_info_st *, char *to, size_t n,
>                      const char *fmt,
>                      ...) ATTRIBUTE_FORMAT_FPTR(printf, 4, 5);
> 
	You can safely ignore the “ATTRIBUTE_FORMAT_FPTR(printf, 4, 5)”.
All it does is that it enables the compiler to check the format
string against the variable arguments and generate a warning if they
do not match.

		Jerome
-- 
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20110304/fd07aa92/attachment.pgp>


More information about the Digitalmars-d-learn mailing list