Chapter Contents |
Previous |
Next |
Code Generation Conventions |
_ _far char *keyptr;
keyptr
is
a far pointer to character.
_ _far char **nearfar;
nearfar
is
a near pointer to a far pointer to character.
char *_ _far *farnear;
farnear
is
a far pointer to a near pointer to character.
int cache(_ _near void *, _ _far void *);
cache
is
a function taking two arguments -- a near pointer and a far pointer.
_ _far struct udata *lookup(char *uname);
lookup
is
a function that returns a far pointer to a structure. Its argument is a near
pointer to character.
The following uses of _ _far
will fail to compile for the indicated reason:
_ _far double[40000]; /* Error: _ _far is only meaningful for pointers */ int (_ _far *service)(int); /* Error: only data pointers, not function pointers, can be far */
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.