home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!mcsun!sunic!liuida!isy!lysator.liu.se!boberg
- From: boberg@lysator.liu.se (Stefan Boberg)
- Subject: Re: What is (APTR) ?
- Message-ID: <1630@lysator.liu.se>
- Sender: news@isy.liu.se (Lord of the News)
- Organization: Lysator Academic Computer Society, Linkoping University, Sweden
- References: <9209140718.AA09878@teetot.acusd.edu> <copes.716466012@marsh>
- Date: Mon, 14 Sep 1992 11:33:14 GMT
- Lines: 36
-
- copes@cs.curtin.edu.au (Simon Cope) writes:
-
- >gs@TEETOT.ACUSD.EDU (Sir Greg Simon) writes:
-
- >>Sorry for my nieve-ness, but in my 2.0 RKM manuals I come across this
- >>symbol very often and I cannot figure out what it is. Could comebody
- >>please explain to me what it is:
-
- >> (APTR)
-
- >I think it stands for A Pointer. It is defined as ULONG * in the includes.
- >Definitely easier to type.
-
- Excerpt from `exec/types.h' :
-
- /* WARNING: APTR was redefined for the V36 Includes! APTR is a */
- /* 32-Bit Absolute Memory Pointer. C pointer math will not */
- /* operate on APTR -- use "ULONG *" instead. */
- ^^^^^^^^^
-
- BTW: Why isn't this "UBYTE *" ?? Why on earth would anyone want ULONG
- pointer arithmetic?
-
- So APTR stands for Absolute PoinTeR.
-
- And it's now defined as:
-
- typedef void *APTR; /* 32-bit untyped pointer */
-
-
- Now you know :-)
- --
- Stefan Boberg - AP & EE student at Linkoping Institute of Technology, Sweden
- Author of LhA, ArjA and LhArcA. Co-author of Alien Breed, Project X, Full
- Contact and Miami Chase.
- EMail: boberg@lysator.liu.se, lha@augs.se FidoNet: 2:204/404
-