1. Locked sequences - solution
- Posted by Michael Sabal <mjs at OSA.ATT.NE.JP> Feb 10, 1999
- 441 views
- Last edited Feb 11, 1999
I know everybody is tired of talking about structures, so this is my final word on the subject. I've just completed a library that will allow locked sequences as per my previous post(s). This library is available at my web site: It provides an engine for controlling the contents of a first-level sequence, storing these records internally. Also provided are routines for accessing records, searching through records, and performing file I/O on the internal sets of records. More information is available via the included documentation. Also, an example database program for managing my Audio CD collection is included using the library. This library also provides a layer of safety over Euphoria's standard "crash on bad index" philosophy. BTW: I've noticed that when I use printf(1,"%s",MySeq), where MySeq = "Hello, Jack.", the return value is only "H". Is this a bug, or intentional? Michael J. Sabal mjs at osa.att.ne.jp http://home.att.ne.jp/gold/mjs/index.html
2. Re: Locked sequences - solution
- Posted by Daniel Berstein <daber at PAIR.COM> Feb 10, 1999
- 456 views
At 09:09 p.m. 10-02-99 +0000, you wrote: >BTW: I've noticed that when I use printf(1,"%s",MySeq), where MySeq = "Hello, Jack.", the return value is >only "H". Is this a bug, or intentional? printf() expects a sequence of paramenters. MySeq is {72, 101, 108, 108, ...etc}, so item 72 ('H') is used to "fill" %s. You should use {MySeq} instead to give the full string as input for the %s mask. Regards, Daniel Berstein daber at pair.com
3. Re: Locked sequences - solution
- Posted by jiri babor <jbabor at PARADISE.NET.NZ> Feb 11, 1999
- 447 views
Library.doc: Comments: Watch out for the following common mistake: printf(1, "%s", name) This will print only the first character of name, as each element of name is taken to be a separate value to be formatted. You must say this instead: printf(1, "%s", {name}) -----Original Message----- From: Michael Sabal <mjs at OSA.ATT.NE.JP> To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU> Date: Thursday, February 11, 1999 1:25 AM >BTW: I've noticed that when I use printf(1,"%s",MySeq), where MySeq = "Hello, Jack.", the return value is >only "H". Is this a bug, or intentional?