Date: Mon, 27 Nov 2000 22:39:04 +0600 (NS) From: Max Khon <fjoe@iclub.nsu.ru> To: Alexander Leidinger <Alexander@Leidinger.net> Cc: kris@FreeBSD.ORG, audit@FreeBSD.ORG Subject: Re: gcc __attributes for format strings Message-ID: <Pine.BSF.4.21.0011272238230.4015-100000@iclub.nsu.ru> In-Reply-To: <200011271624.eARGOir89679@Magelan.Leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
hi, there! On Mon, 27 Nov 2000, Alexander Leidinger wrote: > >From gcc.info (on -current): > ---snip--- > `format (ARCHETYPE, STRING-INDEX, FIRST-TO-CHECK)' > The `format' attribute specifies that a function takes `printf', > `scanf', or `strftime' style arguments which should be type-checked > against a format string. For example, the declaration: > > extern int > my_printf (void *my_object, const char *my_format, ...) > __attribute__ ((format (printf, 2, 3))); > > causes the compiler to check the arguments in calls to `my_printf' > for consistency with the `printf' style format string argument > `my_format'. > [...] > ---snip--- > A search in gcc.info for printflike didn't show a match. it is defined in /usr/include/sys/cdefs.h /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0011272238230.4015-100000>