home *** CD-ROM | disk | FTP | other *** search
- Path: scinfo.u-nancy.fr!decarval
- From: Thierry.DeCarvalho@scinfo.u-nancy.fr (Thierry De Carvalho)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: The easiest C Program ever!!
- Date: 7 Feb 1996 08:07:00 GMT
- Organization: Universite Henri Poincare - Nancy (France)
- Departement Informatique - ESIAL - ISIAL
- Distribution: world
- Message-ID: <4f9mj4$cmq@arcturus.ciril.fr>
- References: <311.6610T1012T295@in.net>
- NNTP-Posting-Host: pollux.scinfo.u-nancy.fr
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
-
- In article <311.6610T1012T295@in.net>, mave@in.net (John J. Maver, Jr.) writes:
- |>
- |>
- |> How do I do a "Press enter to continue" in plain old ANSI C? I have
- |> got SAS6.56.
- |>
- |> My guess was:
- |>
- |>
- |> printf("Please press enter to continue\n");
- |> while ((c=getchar()) != '\n' )
- |> ;
- |>
- |>
- |> However, it never gets the character.
-
- It's "normal", inputs are buffered; SAS/C provides a fonction which allows you
- to switch inputs into non-buffered mode. (look at the SAS/C guide files).
-
-