Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!rutgers!sri-spam!sri-unix!hplabs!nsc!voder!kontron!cramer From: cramer@kontron.UUCP (Clayton Cramer) Newsgroups: net.micro.pc Subject: Microsoft C V3.0 -> 4.0 Incompatibility Message-ID: <1113@kontron.UUCP> Date: Tue, 7-Oct-86 15:30:15 EDT Article-I.D.: kontron.1113 Posted: Tue Oct 7 15:30:15 1986 Date-Received: Wed, 8-Oct-86 08:23:48 EDT Distribution: net Organization: Kontron Electronics, Mt. View, CA Lines: 35 I recently recompiled a program under Microsoft C V4.0 and found the program worked a little differently. Under V3.0, a command line argument of the form: /"This is a test string" generated arguments like: Argv[1] = /"This Argv[2] = is Argv[3] = a Argv[4] = test Argv[5] = string" This was not quite what I expected -- the manual indicated (at least as I understood it) that I should get: Argv[1] = /This is a test string But I worked around the apparent bug in V3.0. Under V4.0, my program didn't worked the same. My first suspicion was that Microsoft actually fixed the bug. What I get now, though, is Argv[1] = /This Argv[2] = is Argv[3] = a Argv[4] = test Argv[5] = string which isn't right either, and caused my program some problems when it tried to find the closing double quote. I changed my program to expect single quotes, and these are passed through without alteration. Clayton E. Cramer