From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,b4a033983c1b721b X-Google-Attributes: gidf7344,public X-Google-Thread: 10f8a1,b4a033983c1b721b X-Google-Attributes: gid10f8a1,public X-Google-Thread: 1014db,b4a033983c1b721b X-Google-Attributes: gid1014db,public X-Google-Thread: 135e0a,b4a033983c1b721b X-Google-Attributes: gid135e0a,public X-Google-Thread: 1164f8,b4a033983c1b721b X-Google-Attributes: gid1164f8,public X-Google-Thread: f6134,b4a033983c1b721b X-Google-Attributes: gidf6134,public X-Google-Thread: 114f7d,b4a033983c1b721b X-Google-Attributes: gid114f7d,public From: Boris Gubenko Subject: Re: scanf problem on Vax C vs Dec C Date: 1997/12/18 Message-ID: <3499185B.63ED5638@tle.enet.dec.com>#1/1 X-Deja-AN: 299393840 Content-Transfer-Encoding: 7bit References: To: Robert Young Content-Type: text/plain; charset=us-ascii Organization: DIGITAL Mime-Version: 1.0 Newsgroups: cern.vaxusers,comp.lang.c,comp.org.decus,comp.os.vms,comp.sys.dec,vmsnet.alpha,vmsnet.infosystems.misc Robert Young wrote: > > 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.......... > > Contact vyoung@groupz.net if you have an idea.......Thanks in advance The problem does not necessarily have to do with the scanf function itself. It may relate to the changes in C RTL I/O subsystem as well. A small sample program demonstrating different behaviour with VAX C and DEC C would help (the smaller, the better). The only difference in scanf between VAX C and DEC C I'm aware of is processing scansets. DEC C behaviour is ANSI-compliant while VAX C is not. -- Boris Gubenko. Digital Equipment Corp. Nashua, NH. DEC C RTL. (603) 884-1675 boris@tle.enet.dec.com ====================================================== All the opinions voiced are mine alone and do not reflect anyone else's opinion, including my employer's.