Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>_near _near -- non-standard type modifier</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _near                    _near -- Non-Standard Type Modifier

    A near data item (or function) resides in the default data (or
    current code) segment.  Its address is 16 bits long.

      Notes:    Depending on the memory model specified at compile-time,
                sizeof(char _near *) may or may not be the same as
                sizeof(char *).

                Variables declared with class auto are always _near, since
                they reside on the run-time stack.

                The default memory model is defined by the compile-time
                switch /A.

   -------------------------------- Example ---------------------------------

           int _near value;
           double _near table[100];
           char _near *fpc;
           char _near **fppc;
           char _near * _near *fpfpc;
           long int _near * _near check(char _near, int, int _near);
           int (near *funptr)();

           i = sizeof(char _near *);




See Also: _far Switches

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson