Re: Hex writing

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

> ---------------------- Information from the mail
header -----------------------
> Sender:       Euphoria Programming for MS-DOS
<EUPHORIA at LISTSERV.MUOHIO.EDU>
> Poster:       Bernie Ryan <xotron at BUFFNET.NET>
> Subject:      Re: Hex writing
> --------------------------------------------------------------------------
-----
>
> Forget what I said about null terminated string I am thinking
>  in wrong langauge.
>
>   The #0 are not printable characters, You have to use %x or %d
>
>   to print numbers.
>
>
>   Bernie
>

    #00 is not a SCREEN printable character.  However, it prints
just fine to a file.
Example:
integer id
id = open("temp.tmp", "wb")
--printf(id,"%s",{#4C,#00,#00,#00})
  printf(id,"%s",{{#4C,#00,#00,#00}})

Yours is commented.  Yours will only print the first character.
Mine should print the whole string.  Yours only printed the first
character because it assumes that you have a sequence of strings.

        Lucius L. Hilley III
        lhilley at cdc.net
+----------+--------------+--------------+
| Hollow   | ICQ: 9638898 | AIM: LLHIII  |
|  Horse   +--------------+--------------+
| Software | http://www.cdc.net/~lhilley |
+----------+-----------------------------+

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

Search



Quick Links

User menu

Not signed in.

Misc Menu