strcmp                package:matlab                R Documentation

_M_A_T_L_A_B _s_t_r_c_m_p _f_u_n_c_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     Compare strings.

_U_s_a_g_e:

     strcmp(S, T)

_A_r_g_u_m_e_n_t_s:

    S, T: character vectors to evaluate

_D_e_t_a_i_l_s:

     Comparisons are case-sensitive and any leading and trailing blanks
     in either of the strings are explicitly included in the
     comparison.

_V_a_l_u_e:

     Returns 'TRUE' if 'S' is identical to 'T'; otherwise, 'FALSE'.

_N_o_t_e:

     Value returned is the opposite of the C language convention.

_A_u_t_h_o_r(_s):

     P. Roebuck, roebuck@mdanderson.org

_E_x_a_m_p_l_e_s:

     strcmp("foo", "bar")  # FALSE
     strcmp(c("yes", "no"), c("yes", "no"))  # TRUE

