comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » who ate my byte?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
who ate my byte? [message #54975] Sun, 22 July 2007 12:02
rtowler is currently offline  rtowler
Messages: 28
Registered: June 2006
Junior Member
IDL> print,strlen('test' + string(0B))
4
IDL> print,strlen('test' + string(1B))
5

Huh?

I need to zero terminate data packets I'm sending (sent as byte array
via UDP) but IDL silently strips them. Obviously I can do something
like:

data = [BYTE('test'), 0B]

but I am curious as to why IDL does this. Any ideas?

-Rick

N 60 29.76
W 178 42.48
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: similarity of two images, identifying overlapping regions
Next Topic: Why the default set is 'XSTYLE=0, YSTYLE=0'

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 07:31:48 PDT 2025

Total time taken to generate the page: 1.60383 seconds