#SAS 6.3 Bug?
If you are reading this, and have SAS C V6.3, I would like you to try
something. Create a simple program as follows:
#include <stdio.h>
int main( int argc, char **argv )
{
printf("Key = %d\n", getch() );
}
Then compile and link using the default options! (be sure NOT to use
NOSTDIO)!
This simple program fails two ways…
First, if you run it from the WB, and press a key, it won't allow you to
close the window it opens.
Second, if you run it from a CLI, and hit a cursor or function key, it
exits fine but will corrupt something that causes it to fail the second
time (it seems to stuff things into the stdin stream). For instance:
RAM:> test<CR>
<Then press F1>
Key = 155
RAM:> test<CR>
0~test: Unknown command
I'm using a Amiga 4000/030 with 6 megs of ram, and nothing unusual in my
startup! Just want to know if this is a compiler bug, or my system.
-Troy