Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jan 1998 14:22:22 +1100 (EST)
From:      John Birrell <jb@freebsd1.cimlogic.com.au>
To:        mike@smith.net.au (Mike Smith)
Cc:        jb@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG
Subject:   Re: cvs commit: src/lib/libmytinfo mkcapsort.c
Message-ID:  <199801130322.OAA04089@freebsd1.cimlogic.com.au>
In-Reply-To: <199801130305.NAA04852@word.smith.net.au> from Mike Smith at "Jan 13, 98 01:35:17 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Mike Smith wrote:
> >   When printf'ing the result of pointer arithmetic, cast the result to
> >   long and use %ld, not %d.
> 
> Is there a reason for doing it this way, rather than using %p?
> (Just curious)

%p gives an output in hex which changes the format of the generated
file in this case. I thought I'd leave the format the same.

Regards,

-- 
John Birrell - jb@cimlogic.com.au; jb@netbsd.org; jb@freebsd.org
CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801130322.OAA04089>