From: Steve Graegert <graegerts@gmail.com>
To: linux-c-programming@vger.kernel.org
Subject: Re: Complete a character array.
Date: Wed, 11 Jan 2006 13:29:28 +0100 [thread overview]
Message-ID: <6a00c8d50601110429q5ba66205u7bb33cfbc5033155@mail.gmail.com> (raw)
In-Reply-To: <22239.81.33.200.252.1136979040.squirrel@webmail.sinanimodelucro.dyns.cx>
On 1/11/06, Ibon Castilla <estri@euskalnet.net> wrote:
> Hi there:
>
> This is my first message to the list. I recently started to programming in
> GNU/Linux. I learned C programming with TurboC, and I'm trying to dump all
> my knoweledge to Free Software :)
>
> I've started with keyboard input functions, and here is my question: how
> can I do to complete an a character array?. Both getchar() and scanf()
> need the user to push ENTER. I remember getche() and getch(), but I didn't
> found any similar function on any library.
As far as I know, there is no such thing, but you can write one
yourself as suggested in http://c-faq.com/osdep/cbreak.html.
Unfortunately, the approach described therein is not portable, thus
requiring some effort to ease maintainability across platforms.
\Steve
--
Steve Graegert <graegerts@gmail.com>
Software Consultant {C/C++ && Java && .NET}
Office: +49 9131 7123988
Mobile: +49 1520 9289212
next prev parent reply other threads:[~2006-01-11 12:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-11 11:30 Complete a character array Ibon Castilla
2006-01-11 12:29 ` Steve Graegert [this message]
2006-01-11 18:18 ` Glynn Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6a00c8d50601110429q5ba66205u7bb33cfbc5033155@mail.gmail.com \
--to=graegerts@gmail.com \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).