home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / amiga / programm / 13351 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.6 KB  |  48 lines

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