How to set string to NULL (Hex value 00)

From: User Name (me_at_attbi.com)
Date: 03/31/04


Date: Wed, 31 Mar 2004 04:52:54 GMT

Hi,
I tried to set a string to NULL with the following statement, but it
always get c080. Does anybody know hot to do it? TIA
set str [binary format h* 0]
puts $str

When I ran the above statements, and redirect to a file. It has c080
values



Relevant Pages

  • Re: Effective/Proper use of "regular expressions"
    ... I wish to extract numerical values from an arbitrarily long ASCII string. ... is an arbitrary sequence of "printable" characters ... set str {key foo 123.46 bar} ...
    (comp.lang.tcl)
  • Find second index in a string
    ... set str "This is a demo containing duplicate demo value". ... I want to retrive the index of the second "demo" present in the above string. ... using lsearch -exact $str "demo" always returns the index of the first string. ...
    (comp.lang.tcl)
  • Re: Effective/Proper use of "regular expressions"
    ... I wish to extract numerical values from an arbitrarily long ASCII string. ... is an arbitrary sequence of "printable" characters ... set str {key foo 123.46 bar} ...
    (comp.lang.tcl)
  • Re: DB problem with strings....
    ... set str "Al's automotive EEEEE" ... legalization on the string before trying to update? ...
    (comp.lang.tcl)
  • Re: Find second index in a string
    ... > I have a specific problem of getting the index from a string. ... set str "This is a demo containing duplicate demo value" ... it's not too wise to compute two times [split ... Ciao, ...
    (comp.lang.tcl)