Date: 18 Jul 2000 23:13:50 +0200 From: Dag-Erling Smorgrav <des@flood.ping.uio.no> To: Alexander Langer <alex@big.endian.de> Cc: Ben Smithurst <ben@FreeBSD.org>, Greg Lehey <grog@lemis.com>, Jamie Bowden <ragnar@sysabend.org>, chat@FreeBSD.org Subject: Re: vinum Message-ID: <xzppuobi1kh.fsf@flood.ping.uio.no> In-Reply-To: Alexander Langer's message of "Tue, 18 Jul 2000 22:32:24 %2B0200" References: <Pine.BSF.4.10.10007140654420.26349-100000@moo.sysabend.org> <20000716115559.G57098@wantadilla.lemis.com> <xzpr98uajhn.fsf@flood.ping.uio.no> <20000718195708.B94391@cichlids.cichlids.com> <20000718201508.F4668@strontium.scientia.demon.co.uk> <20000718223224.B30699@cichlids.cichlids.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Alexander Langer <alex@big.endian.de> writes: > I thought something like this, but I couldn't figure out, how to > decode it.. I did it with unions: #include <stdio.h> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzppuobi1kh.fsf>