From owner-freebsd-audit Mon Nov 27 8:39:31 2000 Delivered-To: freebsd-audit@freebsd.org Received: from iclub.nsu.ru (iclub.nsu.ru [193.124.222.66]) by hub.freebsd.org (Postfix) with ESMTP id B92CA37B4C5; Mon, 27 Nov 2000 08:39:27 -0800 (PST) Received: from localhost (fjoe@localhost) by iclub.nsu.ru (8.11.1/8.11.1) with ESMTP id eARGd5g04060; Mon, 27 Nov 2000 22:39:05 +0600 (NS) (envelope-from fjoe@iclub.nsu.ru) Date: Mon, 27 Nov 2000 22:39:04 +0600 (NS) From: Max Khon To: Alexander Leidinger Cc: kris@FreeBSD.ORG, audit@FreeBSD.ORG Subject: Re: gcc __attributes for format strings In-Reply-To: <200011271624.eARGOir89679@Magelan.Leidinger.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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