Date: Thu, 6 Sep 2001 21:23:49 -0700 (PDT) From: Archie Cobbs <archie@dellroad.org> To: Bruce Evans <bde@zeta.org.au> Cc: Mark Murray <mark@grondar.za>, Maxim Sobolev <sobomax@FreeBSD.org>, Mark Murray <markm@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/su Makefile su.c Message-ID: <200109070423.f874Nnv16757@arch20m.dellroad.org> In-Reply-To: <20010907015343.K32058-100000@alphplex.bde.org> "from Bruce Evans at Sep 7, 2001 02:19:18 am"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109070423.f874Nnv16757>