Return-Path: william@bourbon.usc.edu Delivery-Date: Mon Sep 8 20:18:44 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id m893IigG030504 for ; Mon, 8 Sep 2008 20:18:44 -0700 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id m893HpsQ013346 for ; Mon, 8 Sep 2008 20:17:51 -0700 Message-Id: <200809090317.m893HpsQ013346@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: Regarding data being sent Date: Mon, 08 Sep 2008 20:17:51 -0700 From: Bill Cheng Someone wrote: > Is there a trick needed to print 0 as 0x00000000 instead of 00000000 with > printf. The # flag doesn't seem to work for 0. If you want to output 0x00000000 for 0, you can use printf() with "0x%08x". Please read the man pages of printf() to see all the options. -- Bill Cheng // bill.cheng@usc.edu -----Original Message----- From: Bill Cheng [mailto:william@bourbon.usc.edu] Sent: Monday, September 08, 2008 6:57 PM To: cs551@merlot.usc.edu Subject: Re: Regarding data being sent Someone wrote: > Is it acceptable if I print the IP of nunki at the server instead of the > localhost (127.0.0.1) The adr command is to get the IP address given a hostname. So, you should return the IP address if there is one. -- Bill Cheng // bill.cheng@usc.edu