From: Richard Hadsell <hadsell@blueskystudios.com>
To: axp-list@redhat.com
Subject: Re: Whereis libm.a ?
Date: Mon, 09 Mar 1998 16:36:04 -0500 [thread overview]
Message-ID: <350460C4.FF6@blueskystudios.com> (raw)
In-Reply-To: Pine.GSO.3.96.980309154731.5369H-100000@yacht.ee.fit.edu
Christopher Curtis wrote:
>
> Why does this program:
>
> #line 3823 "configure"
> #include "confdefs.h"
> #include <stdio.h>
> main()
> {
> FILE *f=fopen("conftestval", "w");
> if (!f) exit(1);
> fprintf(f, "%d\n", sizeof(char));
> exit(0);
> }
>
> tell me that the sizeof(char) is 0 ?
Perhaps size_t on your platfrom is a long, while you told fprintf to
expect an int, and long is not the same size as int? This must make C++
programmers smile!
--
Dick Hadsell 914-381-8400 Fax: 914-381-9790
Reply-to: hadsell@blueskystudios.com
Blue Sky | VIFX http://www.blueskystudios.com
1 South Road, Harrison, NY 10528
next prev parent reply other threads:[~1998-03-09 21:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-03-09 20:28 Whereis libm.a ? Christopher Curtis
1998-03-09 20:52 ` Christopher Curtis
1998-03-09 21:07 ` Christopher Curtis
1998-03-09 21:36 ` Richard Hadsell [this message]
1998-03-09 23:31 ` Michal Jaegermann
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox