Logo Search packages:      
Sourcecode: condor version File versions  Download package

int operator== ( const MyString S1,
const char *  S2 
) [friend]

Compare a MyString with a null-terminated C string to see if they are the same.

Definition at line 708 of file MyString.cpp.

{
    if ((!S1.Data || !S1.Length()) && (!S2 || !strlen(S2))) {
            return 1;
      }
    if (!S1.Data || !S2) {
            return 0;
      }
    if (strcmp(S1.Data,S2)==0) {
            return 1;
      }
    return 0;
  }


Generated by  Doxygen 1.6.0   Back to index