Logo Search packages:      
Sourcecode: likewise-open version File versions  Download package

bool strequal ( const char *  s1,
const char *  s2 
)

Compare 2 strings.

Note:
The comparison is case-insensitive.

Definition at line 302 of file util_str.c.

References StrCaseCmp().

Referenced by copy_fn(), find_domain_from_name_noinit(), rpc_group_list_internals(), rpc_printer_migrate_settings_internals(), and rpc_share_migrate_files_internals().

{
      if (s1 == s2)
            return(true);
      if (!s1 || !s2)
            return(false);

      return(StrCaseCmp(s1,s2)==0);
}


Generated by  Doxygen 1.6.0   Back to index