From owner-freebsd-chat Tue Jul 18 14:14:14 2000 Delivered-To: freebsd-chat@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id C85BE37BB4F; Tue, 18 Jul 2000 14:14:09 -0700 (PDT) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id XAA43679; Tue, 18 Jul 2000 23:13:51 +0200 (CEST) (envelope-from des@flood.ping.uio.no) To: Alexander Langer Cc: Ben Smithurst , Greg Lehey , Jamie Bowden , chat@FreeBSD.org Subject: Re: vinum References: <20000716115559.G57098@wantadilla.lemis.com> <20000718195708.B94391@cichlids.cichlids.com> <20000718201508.F4668@strontium.scientia.demon.co.uk> <20000718223224.B30699@cichlids.cichlids.com> From: Dag-Erling Smorgrav Date: 18 Jul 2000 23:13:50 +0200 In-Reply-To: Alexander Langer's message of "Tue, 18 Jul 2000 22:32:24 +0200" Message-ID: Lines: 22 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Alexander Langer writes: > I thought something like this, but I couldn't figure out, how to > decode it.. I did it with unions: #include union { long long ll; char ch[10]; } a, b; int main(void) { a.ll = 22322600044678729LL; b.ll = 22322600044678990LL; printf("%s / %s\n", a.ch, b.ch); } DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message