Mail Archives: djgpp/1999/10/01/22:01:09
From: | "Bas Hamstra" <bas DOT hamstraNOSPAM AT wxs DOT nl>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | sscanf 3 strings ?
|
Date: | Sat, 2 Oct 1999 03:31:56 +0200
|
Organization: | Planet Internet
|
Lines: | 38
|
Message-ID: | <7t3nat$qok$1@reader1.wxs.nl>
|
NNTP-Posting-Host: | gn0396-2.dial.wxs.nl
|
Mime-Version: | 1.0
|
X-Trace: | reader1.wxs.nl 938827933 27412 195.121.153.140 (2 Oct 1999 01:32:13 GMT)
|
X-Complaints-To: | abuse AT wxs DOT nl
|
NNTP-Posting-Date: | 2 Oct 1999 01:32:13 GMT
|
X-Newsreader: | Microsoft Outlook Express 4.72.3155.0
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3155.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hello friends,
In my Borland compiler this works fine:
sscanf(FromBuffer, "%s %s %s %d", Buf1, Buf2, Buf3, &Num);
However in DJGPP things seem different. How can I manage this without too
much bother? DJ seems to not read more than 1 string.
Second question:
In Borland I use a windows lib. It supports PeekNamedPipe(). How to do this
in DJ?
Purpose: My character based chess engine is hanged into a graphical chess
interface. This interface sets up pipes to read from my stdout en send
messages to my stdin. Whenever there is a message, I have to be notified, so
I can terminate the search and handle the input. Just notify. If I know
there *is* input, I can handle it with scanf().
Help is very much appreciated!
Bas Hamstra.
- Raw text -