Article View: comp.sys.amiga.tech
Article #7680Pointer Initialization
From: kzyx
Date: Mon, 24 Dec 1990 19:25
Date: Mon, 24 Dec 1990 19:25
28 lines
1052 bytes
1052 bytes
Hello there,
What is the correct way to initialize a structure pointer to access
the hardware under ANSI (Aztec C 5.0d)
say:
#define ADDRESS (0xAAAAAAL) /* for the sake of example */
struct myblitterstruct *myblitterpointer;
main()
$ .
.
.
*myblitterpointer = ADDRESS; /* I get invalid
ptr/int conv... */
Your help is extremely appreciated
Thanks
Edval
Technical Details
Message-ID:
<1990Dec24.152533.1770@vax5.cit.cornell.edu>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!mit-eddie!uw-beaver!cornell!vax5.cit.cornell.edu!kzyxShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!mit-eddie!uw-beaver!cornell!vax5.cit.cornell.edu!kzyx From: kzyx@vax5.cit.cornell.edu Newsgroups: comp.sys.amiga.tech Subject: Pointer Initialization Message-ID: <1990Dec24.152533.1770@vax5.cit.cornell.edu> Date: 24 Dec 90 19:25:33 GMT Distribution: comp Lines: 28