Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261371AbUKWRkV (ORCPT ); Tue, 23 Nov 2004 12:40:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261356AbUKWRix (ORCPT ); Tue, 23 Nov 2004 12:38:53 -0500 Received: from cantor.suse.de ([195.135.220.2]:4573 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id S261357AbUKWQqO (ORCPT ); Tue, 23 Nov 2004 11:46:14 -0500 To: Jan Engelhardt Cc: linux-kernel@vger.kernel.org Subject: Re: var args in kernel? References: <20041122113328.GQ10340@devserv.devel.redhat.com> <41A25D53.9050909@tmr.com> From: Andreas Schwab X-Yow: If elected, Zippy pledges to each and every American a 55-year-old houseboy... Date: Tue, 23 Nov 2004 17:45:37 +0100 In-Reply-To: (Jan Engelhardt's message of "Tue, 23 Nov 2004 17:17:45 +0100 (MET)") Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 971 Lines: 31 Jan Engelhardt writes: >>>>It's not a struct, it's an array (of one element of struct type). You >>>>can't assign arrays. >>> >>> int callme(const char *fmt, struct { ... } argp[1]) { >> struct { ... } dest[1]; >>> dest = *argp; >>> } >>> >>> Maybe that way? >> >>Maybe you should just try. > > I did not say that 'dest' was an array too But we are talking about va_list, which _is_ an array on some architectures, and which this thread is all about. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra?e 5, 90409 N?rnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/