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

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!gatech!concert!samba!usenet
  3. From: Todd_Lewis@unc.edu (Todd M. Lewis)
  4. Subject: Re: What is (APTR) ?
  5. Message-ID: <1992Sep14.134005.8597@samba.oit.unc.edu>
  6. Sender: usenet@samba.oit.unc.edu
  7. Nntp-Posting-Host: guitar.oit.unc.edu
  8. Organization: UNC Office of Information Technology
  9. References: <copes.716466012@marsh>
  10. Date: Mon, 14 Sep 1992 13:40:05 GMT
  11. Lines: 23
  12.  
  13. In article <copes.716466012@marsh> copes@cs.curtin.edu.au (Simon Cope) writes:
  14. >gs@TEETOT.ACUSD.EDU (Sir Greg Simon) writes:
  15. >>Could comebody please explain to me what it is:
  16. >>    (APTR)
  17. >>Amiga-pointer?
  18. >>Ascii-pointer?
  19. >I think it stands for A Pointer.  It is defined as ULONG * in the includes.
  20. >Definitely easier to type.
  21.  
  22. It was "ULONG *" in the "old" includes, but it has been changed.
  23. Here's a clip from the 2.04 <exec/types.h> file.  Please don't sue me C=:
  24.  
  25. ]  /*  WARNING: APTR was redefined for the V36 Includes!  APTR is a   */
  26. ] /*  32-Bit Absolute Memory Pointer.  C pointer math will not        */
  27. ]/*  operate on APTR --    use "ULONG *" instead.               */
  28. ]#ifndef APTR_TYPEDEF
  29. ]#define APTR_TYPEDEF
  30. ]typedef void           *APTR;        /* 32-bit untyped pointer */
  31. ]#endif
  32.  
  33. I think you are right, though.  It stands for "A Pointer".
  34. --
  35. Todd M. Lewis / Todd_Lewis@unc.edu / utoddl@guitar.oit.unc.edu
  36.