octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #37551] strcmp produces weird result


From: anonymous
Subject: [Octave-bug-tracker] [bug #37551] strcmp produces weird result
Date: Thu, 11 Oct 2012 21:57:36 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:16.0) Gecko/20100101 Firefox/16.0

URL:
  <http://savannah.gnu.org/bugs/?37551>

                 Summary: strcmp produces weird result
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 11 Oct 2012 09:57:35 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: CFB
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Strcmp(choice,mainvalid) [where choice='l' and mainvalid={'l' 's' etc}] gives
error: cell type invalid as index source.
Trying strcmp('a','a') gives ans=0.

strcmpi(choice,mainvalid) gives the expected vector
strcmpi('a','a') gives ans=1

Am I not understanding strcmp correctly? 
-CFB




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37551>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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