From owner-freebsd-hackers Fri Feb 26 10:10:58 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from gatewaya.anheuser-busch.com (gatewaya.anheuser-busch.com [151.145.250.252]) by hub.freebsd.org (Postfix) with SMTP id 60AF414FE2 for ; Fri, 26 Feb 1999 10:10:42 -0800 (PST) (envelope-from Matthew.Alton@anheuser-busch.com) Received: by gatewaya.anheuser-busch.com; id MAA14640; Fri, 26 Feb 1999 12:03:42 -0600 Received: from stlabcexg006.anheuser-busch.com(stlabcexg006 151.145.101.161) by gatewaya via smap (V2.1) id xma014582; Fri, 26 Feb 99 12:03:25 -0600 Received: by stlabcexg006.anheuser-busch.com with Internet Mail Service (5.5.2232.9) id ; Fri, 26 Feb 1999 12:06:16 -0600 Message-ID: From: "Alton, Matthew" To: "'Hackers@FreeBSD.ORG'" Cc: "Ladendorf, Matt" Subject: printf wierdness Date: Fri, 26 Feb 1999 12:06:13 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2232.9) Content-Type: text/plain Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Why is this happening? $ vi foo.c #include int main(void) { unsigned long long int foo = 0; char *bar = "Hidely Ho!"; (void)printf("%llu %s\n", foo, bar); (void)printf("%s %llu\n", bar, foo); return 0; } ~ ~ ~ ~ ~ ~ ~ ~ ~ foo.c: 14 lines, 196 characters. $ make foo cc foo.c -o foo $ ./foo 0 (null) Hidely Ho! 0 $ Matthew Alton Computer Services - UNIX Systems Administration (314)632-6644 matthew.alton@anheuser-busch.com alton@plantnet.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message