cccc [ _f_l_a_g ... ] _f_i_l_e ... -llXXeexxtt [ _l_i_b_r_a_r_y ... ] #includeStatus XXccuuppQQuueerryyVVeerrssiioonn(Display *_d_i_s_p_l_a_y, int *_m_a_j_o_r___v_e_r_s_i_o_n___r_e_t_u_r_n, int *_m_i_n_o_r___v_e_r_s_i_o_n___r_e_t_u_r_n);
_X_c_u_p_Q_u_e_r_y_V_e_r_s_i_o_n sets major_version_return and minor_version_return to the major and minor TOG-CUP protocol version supported by the server. If the TOG-CUP library is compatible with the version returned by the server, it returns nonzero. If the server does not support the TOG-CUP extension, or if there was an error during communications with the server, or if the server and library protocol versions are incompatible, it returns zero. No other Xcup functions may be called before this function. If a client violates this rule, the effects of all subsequent Xcup calls that it makes are undefined.
To get the list of reserved colormap entries, use _X_c_u_p_G_e_t_R_e_s_e_r_v_e_d_C_o_l_o_r_m_a_p_E_n_t_r_i_e_s_.
To allocate one or more read-only color cells with RGB values, use _X_c_u_p_S_t_o_r_e_C_o_l_o_r_s_.