Archived

This topic is now archived and is closed to further replies.

Zoomby

what does "FAR" in the parameter list mean?

Recommended Posts

what does "FAR" in the parameter list/structure prototype of some Win-API functions mean? i.e. "char FAR* h_name" in the hostent winsock structure. bye chris

Share this post


Link to post
Share on other sites
it''s an artifact from the era of real-mode programming (dos and win16). on win32, it''s defined to nothing and doesn''t mean anything. back in real mode days, a "far" pointer contained all 32 bits of the address and could be used to jump from one segment to another, while a "near" pointer contained only 16 bits of an address and could be only used to reference data within the same 64 kb segment.

Share this post


Link to post
Share on other sites