Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!brl-adm!rutgers!lll-lcc!ames!ucbcad!ucbvax!HWALHW50.BITNET!DEGROOT From: DEGROOT@HWALHW50.BITNET (Kees de Groot [DEGROOT@HWALHW50]) Newsgroups: mod.computers.vax Subject: VAX/VMS C-problem Message-ID: <8703190225.AA19060@ucbvax.Berkeley.EDU> Date: Wed, 18-Mar-87 10:31:00 EST Article-I.D.: ucbvax.8703190225.AA19060 Posted: Wed Mar 18 10:31:00 1987 Date-Received: Fri, 20-Mar-87 03:56:22 EST Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 31 Approved: info-vax@sri-kl.arpa One of my colleagues has the following problem: In the version 2.2-015 of VAX C under VMS 4.4, the example below gives me an outputfile with 8 lines, while earlier versions just resulted in 1 line. Does anyone know if this is a bug or a feature in version 2.2?? ------------------------------------------------------------------------------- #define wrs(s) write(fdout,s,strlen(s)) main(){ int fdout; fdout = creat("fil.out",0,"rfm=var","rat=cr"); wrs ("This " ); wrs ("text " ); wrs ("should " ); wrs ("be " ); wrs ("on " ); wrs ("one " ); wrs ("line." ); wrs ("\n" ); } ------------------------------------------------------------------------------- Tel. +31-8370- .KeesdeGroot (DEGROOT@HWALHW50.BITNET) o\/o THERE AINT NO (8)3557/ Wageningen Agricultural University [] SUCH THING AS 4030 Computer-centre, the Netherlands .==. A FREE LUNCH! DISCLAIMER: My opinions are my own alone and do not represent any official position of my employer.