octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some strfns.cc loose ends


From: Daniel J Sebald
Subject: Re: Some strfns.cc loose ends
Date: Wed, 25 Jul 2012 19:41:27 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

On 07/25/2012 07:21 PM, Daniel J Sebald wrote:

In any case, thoughts on getting rid of the FIXME by simply error-ing
out when the element is a non-string as opposed to skipping and
indicating 0?

As a followup, one of the tests for strncmp is:

octave:10> strncmp (100, 100, 1)
ans = 0

So, 100 and 100 are the same quantity, but when compared as strings they are not equal/equivalent. Isn't this result weird?

Dan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]