Re: Locked sequences - solution

new topic     » goto parent     » topic index » view thread      » older message » newer message

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?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu