Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!homxb!whuts!mtune!rutgers!dayton!ems!pwcs!zycad!kjb From: kjb@zycad.UUCP Newsgroups: comp.sys.apollo Subject: vfmt_${ws,encode,write} Message-ID: <673@zycad.UUCP> Date: Fri, 30-Oct-87 18:39:45 EST Article-I.D.: zycad.673 Posted: Fri Oct 30 18:39:45 1987 Date-Received: Tue, 3-Nov-87 02:19:52 EST Organization: ZYCAD, Oakdale, MN Lines: 25 Keywords: do they work with zero length strings I just spend a day debugging a problem when using the vfmt calls. When encoding or writing a string they seem to blow up if given a string and a corresponding length of zero. They do not write a zero length string as I would expect. Has anyone else encountered this, or am I doing something wrong? For example string_length := 0; string { has some data} vfmt_$ws2('%2x%a%.', string, string_length); The call just seems to ignore the length and writes as much garbage as it can. If it makes any difference, this call is in a loop and for the previous iteration of the loop it is given a non-zero length for the string. Does it remember that length? I believe I have another occasion in my test case when the loop is entered and the length is zero every interation and this seems to work just fine. -- Kevin Buchs 3500 Zycad Dr. Oakdale, MN 55109 (612)779-5548 Zycad Corp. {rutgers,ihnp4,amdahl,umn-cs}!meccts!nis!zycad!kjb