🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #3222

Re: What's an APTR, BPTR?

#3222
From: Valentin Pepelea
Date: Mon, 09 Apr 1990 14:03
26 lines
1652 bytes
In article <3421@newton.physics.purdue.edu> murphy@newton.physics.purdue.edu.UUCP (William J. Murphy) writes:
>
>I would have to assume that APTR = Amiga Pointer = 32bit pointer?

Correct.

>BPTR = BCPL pointer = long-word aligned pointer.

Way back when the evil language BCPL was invented, computers had no more than
64K of addressing space. The BCPL language allowed the illusion of working with
a contiguous 256K by using pointers that were shifted right by two bits.
Thus a pointer to address 1024 would be represented as a 256 in BCPL.

>I have tries this where I have made printbuffer = (APTR)"Let the printer type
>this" instead of trying to assign/cast the pointer to the beginning of
>the character buffer.  It worked.

Try putting a printf("%s",buffer); right after the scanf() call to see whether
you are obtaining what you want from scanf().

Valentin
-- 
The Goddess of democracy? "The tyrants     Name:    Valentin Pepelea
may distroy a statue,  but they cannot     Phone:   (215) 431-9327
kill a god."                               UseNet:  cbmvax!valentin@uunet.uu.net
             - Ancient Chinese Proverb     Claimer: I not Commodore spokesman be
Technical Details
Message-ID: <10712@cbmvax.commodore.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cbmvax!valentin
References: <3421@newton.physics.purdue.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cbmvax!valentin
From: valentin@cbmvax.commodore.com (Valentin Pepelea)
Newsgroups: comp.sys.amiga.tech
Subject: Re: What's an APTR, BPTR?
Message-ID: <10712@cbmvax.commodore.com>
Date: 9 Apr 90 14:03:26 GMT
References: <3421@newton.physics.purdue.edu>
Reply-To: valentin@cbmvax (Valentin Pepelea)
Distribution: comp.amiga.tech
Organization: Commodore, West Chester, PA
Lines: 26