Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: rmoore@qualcomm.com (Ryan Moore)
Subject: Re: scanf problem on Vax C vs Dec C
Date: 1997/12/19	[thread overview]
Message-ID: <67ectu$761$1@thefuture.qualcomm.com> (raw)
In-Reply-To: C6E5BFCFBCCA2B1B.3CA6CD5AB390B242.73B97B6D4A3E9E0D@library-proxy.airnews.net


In article 
<C6E5BFCFBCCA2B1B.3CA6CD5AB390B242.73B97B6D4A3E9E0D@library-proxy.airnews.net>, 
rcyoung@groupz.net says...
>
>I have code using Vax C on VMS that uses scanf. It appears to function
>properly, waiting for a 'new line' character to be entered. Recompiled on
>Dec C on an Alpha VMS system, scanf does not appear to wait for the new line
>character. VMS is 6.1 in both cases with corresponding compatible (ie old)
>compilers..
>
>Any ideas? I am at a loss..........

Yeah, I had a similar experience with VAX C and DEC C acting differently on 
scanf("%c", &blah).  I don't remember why it acted differently.... it may have 
to do with scanf("%c"...) picking up a newline from a previous scanf() 
statement.  I ended up changing my scanf("%c") stuff to scanf("%s") stuff and 
using the first character in the resulting string.

-Ryan




      parent reply	other threads:[~1997-12-19  5:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-17  5:00 scanf problem on Vax C vs Dec C Robert Young
1997-12-18  5:00 ` Boris Gubenko
1997-12-19  5:00   ` Ryan Moore
1997-12-19  5:00     ` Kaz Kylheku
1997-12-19  5:00     ` Chris Engebretson
1997-12-19  5:00 ` Ryan Moore [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox