Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 May 2002 20:10:00 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        "Terry R. Friedrichsen" <terry@uplift.sunquest.com>, questions@FreeBSD.ORG
Subject:   Re: printf(3) problem?
Message-ID:  <p05111710b90b4b88a958@[128.113.24.47]>
In-Reply-To: <200205171038.DAA52246@uplift.sunquest.com>
References:  <200205171038.DAA52246@uplift.sunquest.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 3:38 AM -0700 5/17/02, Terry R. Friedrichsen wrote:
>I've never tried this before, so I may simply be doing it
>wrong.  I'm using FreeBSD 4.5-RELEASE, and the following
>program appears to print the wrong thing.

Try compiling your program with -Wall, eg:
     cc -Wall -o test test.c

>I'm somewhat buoyed by the fact that Tru64 and Linux
>agree with me.

These operating systems may have different fundamental
types for off_t.  Or, you may have the same type-mismatch,
but the way they pass parameters around might mean that
you still get the output you are expecting, even though
the parameters are not right.

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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