From owner-cvs-all Thu Sep 6 21:30: 9 2001 Delivered-To: cvs-all@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id 3DA0F37B407; Thu, 6 Sep 2001 21:30:03 -0700 (PDT) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id VAA30526; Thu, 6 Sep 2001 21:23:50 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.3/8.11.3) id f874Nnv16757; Thu, 6 Sep 2001 21:23:49 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200109070423.f874Nnv16757@arch20m.dellroad.org> Subject: Re: cvs commit: src/usr.bin/su Makefile su.c In-Reply-To: <20010907015343.K32058-100000@alphplex.bde.org> "from Bruce Evans at Sep 7, 2001 02:19:18 am" To: Bruce Evans Date: Thu, 6 Sep 2001 21:23:49 -0700 (PDT) Cc: Mark Murray , Maxim Sobolev , Mark Murray , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bruce Evans writes: > This question is sort of backwards too. You want to get const > non-built-up stuff into a plain "char *". What about.. const char *foo = "foo"; char *bar; *((const char **)&bar) = foo; or even just (const char *)bar = foo; /* gcc-ism? */ -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message