##iinncclluuddee <> </pprree>> < > iinntt llddaapp__mmooddiiffyy__eexxtt(( LLDDAAPP **_l_d,, cchhaarr **_d_n,, LLDDAAPPMMoodd **_m_o_d_s_[_],, LLDDAAPPCCoonnttrrooll ****_s_c_t_r_l_s,, LLDDAAPPCCoonnttrrooll ****_c_c_t_r_l_s,, iinntt ****_m_s_g_i_d_p ));; <
> <> <
> iinntt llddaapp__mmooddiiffyy__eexxtt__ss(( LLDDAAPP **_l_d,, cchhaarr **_d_n,, LLDDAAPPMMoodd **_m_o_d_s_[_],, LLDDAAPPCCoonnttrrooll ****_s_c_t_r_l_s,, LLDDAAPPCCoonnttrrooll ****_c_c_t_r_l_s ));; </pprree>> <
> <> <
> vvooiidd llddaapp__mmooddss__ffrreeee(( LLDDAAPPMMoodd ****_m_o_d_s,, iinntt _f_r_e_e_m_o_d_s ));; </pprree>> <
> DDEESSCCRRIIPPTTIIOONN </hh33>> TThhee rroouuttiinnee <>llddaapp__mmooddiiffyy__eexxtt__ss(())</bb>> iiss uusseedd ttoo ppeerrffoorrmm aann LLDDAAPP mmooddiiffyy ooppeerraattiioonn.. _d_n iiss tthhee DDNN ooff tthhee eennttrryy ttoo mmooddiiffyy,, aanndd _m_o_d_s iiss aa nnuullll--tteerrmmiinnaatteedd aarrrraayy ooff mmooddiiffiiccaattiioonnss ttoo mmaakkee ttoo tthhee eennttrryy.. EEaacchh eelleemmeenntt ooff tthhee _m_o_d_s aarrrraayy iiss aa ppooiinntteerr ttoo aann LLDDAAPPMMoodd ssttrruuccttuurree,, wwhhiicchh iiss ddeeffiinneedd bbeellooww.. < > <> <
> ttyyppeeddeeff ssttrruucctt llddaappmmoodd {{ iinntt mmoodd__oopp;; cchhaarr **mmoodd__ttyyppee;; uunniioonn {{ cchhaarr ****mmooddvv__ssttrrvvaallss;; ssttrruucctt bbeerrvvaall ****mmooddvv__bbvvaallss;; }} mmoodd__vvaallss;; ssttrruucctt llddaappmmoodd **mmoodd__nneexxtt;; }} LLDDAAPPMMoodd;; ##ddeeffiinnee mmoodd__vvaalluueess mmoodd__vvaallss..mmooddvv__ssttrrvvaallss ##ddeeffiinnee mmoodd__bbvvaalluueess mmoodd__vvaallss..mmooddvv__bbvvaallss _<_/_p_r_e_> _<_p_> _T_h_e _m_o_d___o_p _f_i_e_l_d _i_s _u_s_e_d _t_o _s_p_e_c_i_f_y _t_h_e _t_y_p_e _o_f _m_o_d_i_f_i_c_a_t_i_o_n _t_o _p_e_r_f_o_r_m _a_n_d _s_h_o_u_l_d _b_e _o_n_e _o_f _L_D_A_P___M_O_D___A_D_D_, _L_D_A_P___M_O_D___D_E_L_E_T_E_, _o_r _L_D_A_P___M_O_D___R_E_P_L_A_C_E_. _T_h_e _m_o_d___t_y_p_e _a_n_d _m_o_d___v_a_l_u_e_s _f_i_e_l_d_s _s_p_e_c_i_f_y _t_h_e _a_t_t_r_i_b_u_t_e _t_y_p_e _t_o _m_o_d_i_f_y _a_n_d _a _n_u_l_l_-_t_e_r_m_i_n_a_t_e_d _a_r_r_a_y _o_f _v_a_l_u_e_s _t_o _a_d_d_, _d_e_l_e_t_e_, _o_r _r_e_p_l_a_c_e _r_e_s_p_e_c_t_i_v_e_l_y_. _T_h_e _m_o_d___n_e_x_t _f_i_e_l_d _i_s _u_s_e_d _o_n_l_y _b_y _t_h_e _L_D_A_P _s_e_r_v_e_r _a_n_d _m_a_y _b_e _i_g_n_o_r_e_d _b_y _t_h_e _c_l_i_e_n_t_. _<_p_> _I_f _y_o_u _n_e_e_d _t_o _s_p_e_c_i_f_y _a _n_o_n_-_s_t_r_i_n_g _v_a_l_u_e _(_e_._g_._, _t_o _a_d_d _a _p_h_o_t_o _o_r _a_u_d_i_o _a_t_t_r_i_b_u_t_e _v_a_l_u_e_)_, _y_o_u _s_h_o_u_l_d _s_e_t _m_o_d___o_p _t_o _t_h_e _l_o_g_i_c_a_l _O_R _o_f _t_h_e _o_p_e_r_a_t_i_o_n _a_s _a_b_o_v_e _(_e_._g_._, _L_D_A_P___M_O_D___R_E_P_L_A_C_E_) _a_n_d _t_h_e _c_o_n_s_t_a_n_t _L_D_A_P___M_O_D___B_V_A_L_U_E_S_. _I_n _t_h_i_s _c_a_s_e_, _m_o_d___b_v_a_l_u_e_s _s_h_o_u_l_d _b_e _u_s_e_d _i_n_s_t_e_a_d _o_f _m_o_d___v_a_l_u_e_s_, _a_n_d _i_t _s_h_o_u_l_d _p_o_i_n_t _t_o _a _n_u_l_l_-_t_e_r_m_i_n_a_t_e_d _a_r_r_a_y _o_f _s_t_r_u_c_t _b_e_r_v_a_l_s_, _a_s _d_e_f_i_n_e_d _i_n _<_l_b_e_r_._h_>_. _<_p_> _F_o_r _L_D_A_P___M_O_D___A_D_D _m_o_d_i_f_i_c_a_t_i_o_n_s_, _t_h_e _g_i_v_e_n _v_a_l_u_e_s _a_r_e _a_d_d_e_d _t_o _t_h_e _e_n_t_r_y_, _c_r_e_a_t_i_n_g _t_h_e _a_t_t_r_i_b_u_t_e _i_f _n_e_c_e_s_s_a_r_y_. _F_o_r _L_D_A_P___M_O_D___D_E_L_E_T_E _m_o_d_i_f_i_c_a_t_i_o_n_s_, _t_h_e _g_i_v_e_n _v_a_l_u_e_s _a_r_e _d_e_l_e_t_e_d _f_r_o_m _t_h_e _e_n_t_r_y_, _r_e_m_o_v_i_n_g _t_h_e _a_t_t_r_i_b_u_t_e _i_f _n_o _v_a_l_u_e_s _r_e_m_a_i_n_. _I_f _t_h_e _e_n_t_i_r_e _a_t_t_r_i_b_u_t_e _i_s _t_o _b_e _d_e_l_e_t_e_d_, _t_h_e _m_o_d___v_a_l_u_e_s _f_i_e_l_d _s_h_o_u_l_d _b_e _s_e_t _t_o _N_U_L_L_. _F_o_r _L_D_A_P___M_O_D___R_E_P_L_A_C_E _m_o_d_i_f_i_c_a_t_i_o_n_s_, _t_h_e _a_t_t_r_i_b_u_t_e _w_i_l_l _h_a_v_e _t_h_e _l_i_s_t_e_d _v_a_l_u_e_s _a_f_t_e_r _t_h_e _m_o_d_i_f_i_c_a_t_i_o_n_, _h_a_v_i_n_g _b_e_e_n _c_r_e_a_t_e_d _i_f _n_e_c_e_s_s_a_r_y_. _A_l_l _m_o_d_i_f_i_c_a_t_i_o_n_s _a_r_e _p_e_r_f_o_r_m_e_d _i_n _t_h_e _o_r_d_e_r _i_n _w_h_i_c_h _t_h_e_y _a_r_e _l_i_s_t_e_d_. _<_p_> _<_b_>_l_d_a_p___m_o_d_s___f_r_e_e_(_)_<_/_b_> _c_a_n _b_e _u_s_e_d _t_o _f_r_e_e _e_a_c_h _e_l_e_m_e_n_t _o_f _a _N_U_L_L_-_t_e_r_m_i_n_a_t_e_d _a_r_r_a_y _o_f _m_o_d _s_t_r_u_c_t_u_r_e_s_. _I_f _f_r_e_e_m_o_d_s _i_s _n_o_n_-_z_e_r_o_, _t_h_e _m_o_d_s _p_o_i_n_t_e_r _i_t_s_e_l_f _i_s _f_r_e_e_d _a_s _w_e_l_l_. _<_p_> _<_b_>_l_d_a_p___m_o_d_i_f_y___e_x_t___s_(_)_<_/_b_> _r_e_t_u_r_n_s _a _c_o_d_e _i_n_d_i_c_a_t_i_n_g _s_u_c_c_e_s_s _o_r_, _i_n _t_h_e _c_a_s_e _o_f _f_a_i_l_u_r_e_, _i_n_d_i_c_a_t_i_n_g _t_h_e _n_a_t_u_r_e _o_f _t_h_e _f_a_i_l_u_r_e_. _S_e_e _<_a _h_r_e_f_=_"_._._/_h_t_m_l_3_/_l_d_a_p___e_r_r_o_r_._h_t_m_l_"_>_l_d_a_p___e_r_r_o_r_(_3_)_<_/_a_> _f_o_r _d_e_t_a_i_l_s _<_p_> _T_h_e _<_b_>_l_d_a_p___m_o_d_i_f_y___e_x_t_(_)_<_/_b_> _o_p_e_r_a_t_i_o_n _w_o_r_k_s _t_h_e _s_a_m_e _w_a_y _a_s _<_b_>_l_d_a_p___m_o_d_i_f_y___e_x_t___s_(_)_<_/_b_>_, _e_x_c_e_p_t _t_h_a_t _i_t _i_s _a_s_y_n_c_h_r_o_n_o_u_s_. _T_h_e _i_n_t_e_g_e_r _t_h_a_t _m_s_g_i_d_p _p_o_i_n_t_s _t_o _i_s _s_e_t _t_o _t_h_e _m_e_s_s_a_g_e _i_d _o_f _t_h_e _m_o_d_i_f_y _r_e_q_u_e_s_t_. _T_h_e _r_e_s_u_l_t _o_f _t_h_e _o_p_e_r_a_t_i_o_n _c_a_n _b_e _o_b_t_a_i_n_e_d _b_y _c_a_l_l_i_n_g _<_a _h_r_e_f_=_"_._._/_h_t_m_l_3_/_l_d_a_p___r_e_s_u_l_t_._h_t_m_l_"_>_l_d_a_p___r_e_s_u_l_t_(_3_)_<_/_a_> _<_p_> _B_o_t_h _<_b_>_l_d_a_p___m_o_d_i_f_y___e_x_t_(_)_<_/_b_> _a_n_d _<_b_>_l_d_a_p___m_o_d_i_f_y___e_x_t___s_(_)_<_/_b_> _a_l_l_o_w_s _s_e_r_v_e_r _a_n_d _c_l_i_e_n_t _c_o_n_t_r_o_l_s _t_o _b_e _p_a_s_s_e_d _i_n _v_i_a _t_h_e _s_c_t_r_l_s _a_n_d _c_c_t_r_l_s _p_a_r_a_m_e_t_e_r_s_, _r_e_s_p_e_c_t_i_v_e_l_y_. _<_h_3 _i_d_=_"_D_E_P_R_E_C_A_T_E_D _I_N_T_E_R_F_A_C_E_S_"_> _D_E_P_R_E_C_A_T_E_D _I_N_T_E_R_F_A_C_E_S _<_/_h_3_> _T_h_e _<_b_>_l_d_a_p___m_o_d_i_f_y_(_)_<_/_b_> _a_n_d _<_b_>_l_d_a_p___m_o_d_i_f_y___s_(_)_<_/_b_> _r_o_u_t_i_n_e_s _a_r_e _d_e_p_r_e_c_a_t_e_d _i_n _f_a_v_o_r _o_f _t_h_e _<_b_>_l_d_a_p___m_o_d_i_f_y___e_x_t_(_)_<_/_b_> _a_n_d _<_b_>_l_d_a_p___m_o_d_i_f_y___e_x_t___s_(_)_<_/_b_> _r_o_u_t_i_n_e_s_, _r_e_s_p_e_c_t_i_v_e_l_y_. _<_p_> _D_e_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