Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!psuvax1!psuvm!tew105 From: TEW105@psuvm.psu.edu Newsgroups: comp.sys.amiga Subject: SAS/C - getchar() Message-ID: <90250.211833TEW105@psuvm.psu.edu> Date: 8 Sep 90 01:18:33 GMT Organization: Penn State University Lines: 27 I am new to C programing and just received my SAS/C 5.1. Acording to the book I am using as a reference for C, the getchar() command should wait for a character input, but when I use it, the program just skips happily on by the command like it never existed. Should I be using a loop similar to what would be done with get a$ in basic? BTW, my code looked something like this: include# (or whatever the standard one is> main { char showall; printf ("Show all output (y/n)? \n"); showall=getchar(); blah... blah.. blah.. } Also, anysuggestions for using SAS/C on a 2 floppy, 1 meg, no HD system? Thanks for all help! L8R, ___ | |A |IF IT FALLS ON YOUR ||_|| _ \\ | ELECTRIC DREAMS! | M |HEAD, THEN YOU KNOW ||-|| |_| |\| |_| __\\ |_____________________| I |IT'S A ROCK. DISCLAMIER: THESE ARE MY OPINIONS, NOT ANYONE| G | -BINABIK ELSE'S AND ESPECIALLY NOT THE PSU CAC'S! | A |