delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/03/10:30:26

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: sscanf 3 strings ?
Date: Sun, 3 Oct 1999 13:03:53 +0200
Organization: NetVision Israel
Lines: 24
Message-ID: <Pine.SUN.3.91.991003130334.16939D-100000@is>
References: <7t3nat$qok$1 AT reader1 DOT wxs DOT nl>
NNTP-Posting-Host: is.elta.co.il
Mime-Version: 1.0
X-Trace: news.netvision.net.il 938948559 23369 199.203.121.2 (3 Oct 1999 11:02:39 GMT)
X-Complaints-To: abuse AT netvision DOT net DOT il
NNTP-Posting-Date: 3 Oct 1999 11:02:39 GMT
X-Sender: eliz AT is
In-Reply-To: <7t3nat$qok$1@reader1.wxs.nl>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sat, 2 Oct 1999, Bas Hamstra wrote:

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

Please post a short test program that can be compiled and run, and
which exhibits the different behavior under these two compilers.
Please include the description of what you get from each version of
the program.

> Second question:

It is better to post each question (unless they are related) in a
separate message.

> In Borland I use a windows lib. It supports PeekNamedPipe(). How to do this
> in DJ?

I think I answered this in another thread.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019