Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!decvax!decwrl!ucbvax!info-vax From: conrad@UCSF-CGL.ARPA (Conrad Huang) Newsgroups: mod.computers.vax Subject: VMS C help needed Message-ID: <8602070150.AA10267@ucsf-cgl.ARPA> Date: Thu, 6-Feb-86 20:50:53 EST Article-I.D.: ucsf-cgl.8602070150.AA10267 Posted: Thu Feb 6 20:50:53 1986 Date-Received: Sun, 9-Feb-86 06:11:29 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 17 Approved: info-vax@sri-kl.arpa I've been converting a program to run under VMS C C2.0-003. If I use the old library from VMS C V1.xxx (crtlib.olb), everything works fine. When I use the new library (vaxcrtl.olb, creation date 27-APR-1985), sscanf() seems to fail at random intervals; that is, sscanf() claims there are no matches (returns -1) even though the input string is "1 molecules\n" and the format string is "%d molecules". Has anyone else seen anything similar? Things get *real* interesting when I compile and link my program with the debug option. If I "go" without setting any watch/break points, it fails. If I set a watch point, it sometimes does not fail. If I set a break point and look at values, it *never* fails. I either need a VMS C guru or a psychiatrist. *Any* help would be greatly appreciated. Thanks, Conrad Huang