Article View: comp.os.linux.development.apps
Article #8Re: HELP-Conflicting types and casting float to NULL errors on GCC 2.7.0 Linux
From: Tanmoy Bhattacharya
Date: Tue, 05 Dec 1995 00:48
Date: Tue, 05 Dec 1995 00:48
32 lines
1922 bytes
1922 bytes
In article <49vdg5$fh3@seralph9.essex.ac.uk>, ymyuso@esl3.NoSubdomain.NoDomain (Yusoff Y M) writes: |> Hi, |> I need some help for two error messages that I get from GCC 2.7.0 on |> Linux and if possible suggestions to get around them. These errors don't <snip> |> int fputc(char c, FILE *stream); fputc does _not_ take a char as its first argument: it takes an int which it converts to unsigned char inside. <snip> |> /* check for validity of entered arguments */ |> if ((b == (float)NULL) || (h == (float)NULL) || (r == (float)NULL) |> ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ |> || (i == (int)NULL) || (C == (int)NULL)) |> usage(); I have no idea what (float)NULL was supposed to mean. NULL is a special value which can be portably used in a pointer context to create a null pointer. An operand of the cast (float) or (int) is not a place where NULL can be used. What are you trying to do? Cheers Tanmoy -- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242) Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544 Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>, <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/ internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html> fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
Technical Details
Message-ID:
<4a04ti$5m3@newshost.lanl.gov>Path:
arc1-ca.pugleaf.net!qcd.lanl.gov!tanmoyReferences:
<49vdg5$fh3@seralph9.essex.ac.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!qcd.lanl.gov!tanmoy From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya) Newsgroups: comp.os.linux.development.apps,comp.lang.c,gnu.gcc.help Subject: Re: HELP-Conflicting types and casting float to NULL errors on GCC 2.7.0 Linux Date: 5 Dec 1995 00:48:50 GMT Organization: Los Alamos National Laboratory Distribution: world Message-ID: <4a04ti$5m3@newshost.lanl.gov> References: <49vdg5$fh3@seralph9.essex.ac.uk> NNTP-Posting-Host: qcd.lanl.gov