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

Home » Public Forums » archive » Re: who ate my byte?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: who ate my byte? [message #54974 is a reply to message #54972] Mon, 23 July 2007 01:09 Go to previous message
Maarten[1] is currently offline  Maarten[1]
Messages: 176
Registered: November 2005
Senior Member
On Jul 22, 7:02 pm, rtow...@gmail.com wrote:
> IDL> print,strlen('test' + string(0B))
> 4
> IDL> print,strlen('test' + string(1B))
> 5
>
> Huh?
>
> I am curious as to why IDL does this. Any ideas?

It probably is the C library underneath that does this, with its 0
terminated strings.

Maarten
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Linux Seg fault (was Re: segmentation fault, TVRD, writing image)
Next Topic: Selecting the Location of Contour Labels

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

Current Time: Fri Oct 10 20:09:23 PDT 2025

Total time taken to generate the page: 1.44009 seconds