TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JAVIER KOHEN
from: ERIK WARMELINK
date: 1997-05-09 22:25:00
subject: Scroll Lock

Javier, je wrote to me:
 CR>>>      const char far *ks;   // Pointer to BIOS keyboard flag
 EW>>    const volatile char far *ks;
 FC>>      volatile char far * const ks;
 EW> Perhaps making the pointer static would a be good idea too, since 
here's
 EW> only one BIOS keyboard flags byte.
 JK> Is "static volatile blablabla" a valid declaration???
 JK> Because the volatile is needed, too.
If I am not terribly mistaken, even
   static const volatile unsigned char far * const far KeyboardStatus;
is allowed. :-)
It is a constant pointer (possibly located outside the near data segment) 
pointing to an unsigned (it contains flags) char (possibly located etc.) that 
can be changed by something or someone outside the scope of the program but 
not by the program through this pointer.
Bye,
 Erik 
---
---------------
* Origin: WarmelinkE@vertis.nl (2:282/608.60)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.