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: John W. Eaton
Subject: Re: Some strfns.cc loose ends
Date: Thu, 26 Jul 2012 10:21:37 -0400

On 25-Jul-2012, Daniel J Sebald wrote:

| 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?

It may be weird, but it is documented behavior for Matlab.

jwe


reply via email to

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