🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6663

Re: BC++ 3.1 bug? Declaration Problem

#6663
From: sa6904623
Date: Tue, 24 Nov 1992 02:48
19 lines
931 bytes
The error was in the declaration of the pointers.

The statement
	unsigned short far *ppm, *dest ;

is different from
	unsigned short far *ppm ;
	unsigned short far *dest ;

because the keyword (type) is "unsigned short far *", thus the first statement
is evaluated as
	unsigned short far *	ppm
	unsigned short far **	dest

if you want them to be the same, the first line should read as
	unsigned short far *	ppm, dest ;


Kenneth "Automan" Tan
Technical Details
Message-ID: <1992Nov24.104847.1@ntuvax.ntu.ac.sg>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!darwin.sura.net!jvnc.net!nuscc!ntuix!ntuvax.ntu.ac.sg!sa6904623

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!darwin.sura.net!jvnc.net!nuscc!ntuix!ntuvax.ntu.ac.sg!sa6904623
From: sa6904623@ntuvax.ntu.ac.sg
Subject: Re:  BC++ 3.1 bug?  Declaration Problem
Message-ID: <1992Nov24.104847.1@ntuvax.ntu.ac.sg>
Lines: 20
Sender: news@ntuix.ntu.ac.sg (USENET News System)
Nntp-Posting-Host: v9001.ntu.ac.sg
Organization: Nanyang Technological University - Singapore
Date: Tue, 24 Nov 1992 02:48:47 GMT