TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: Robert A. Hengstebeck 76417,2751
from: Bob van der Poel 76510,2203
date: 1992-03-30 21:36:00
subject: #14724-getkey problem in C

#: 14729 S3/Languages
    30-Mar-92  21:36:00
Sb: #14724-getkey problem in C
Fm: Bob van der Poel 76510,2203
To: Robert A. Hengstebeck 76417,2751

Bob,

Change the call to getkey() from getkey(vlu) to vlu=getkey(). Then change
getkey() to:

    int getkey()
    {
        int v;
        while ((v=inkey())==0);
        return v;
    } Hope this helps.

SOURCE: compuserve via textfiles.com

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™.