MBRUNE(3) BSD Programmer's Manual MBRUNE(3) NNAAMMEE mmbbrruunnee, mmbbrrrruunnee, mmbbmmbb - multibyte rune support for C SSYYNNOOPPSSIISS ##iinncclluuddee <<rruunnee..hh>> _c_h_a_r _* mmbbrruunnee(_c_o_n_s_t _c_h_a_r _*_s_t_r_i_n_g, _r_u_n_e___t _r_u_n_e); _c_h_a_r _* mmbbrrrruunnee(_c_o_n_s_t _c_h_a_r _*_s_t_r_i_n_g, _r_u_n_e___t _r_u_n_e); _c_h_a_r _* mmbbmmbb(_c_o_n_s_t _c_h_a_r _*_s_t_r_i_n_g, _c_h_a_r _*_p_a_t_t_e_r_n); DDEESSCCRRIIPPTTIIOONN These routines provide the corresponding functionality of ssttrrcchhrr(), ssttrrrrcchhrr() and ssttrrssttrr() for multibyte strings. The mmbbrruunnee() function locates the first occurence of rruunnee() in the string pointed to by _s_t_r_i_n_g. The terminating NULL character is considered part of the string. If _r_u_n_e is `\0', mmbbrruunnee() locates the terminating `\0'. The mmbbrrrruunnee() function locates the last occurrence of _r_u_n_e in the string _s_t_r_i_n_g. If _r_u_n_e is `\0', mmbbrruunnee() locates the terminating `\0'. The mmbbmmbb() function locates the first occurence of the null-terminated string _p_a_t_t_e_r_n in the null-terminated string _s_t_r_i_n_g_. If _p_a_t_t_e_r_n is the empty string, mmbbmmbb() returns _s_t_r_i_n_g; if _p_a_t_t_e_r_n occurs nowhere in _s_t_r_i_n_g, mmbbmmbb() returns NULL; otherwise mmbbmmbb() returns a pointer to the first character of the first occurrence of _p_a_t_t_e_r_n. RREETTUURRNN VVAALLUUEESS The function mmbbrruunnee() returns a pointer to the located character, or NULL if the character does not appear in the string. The mmbbrrrruunnee() function returns a pointer to the character, or NULL if the character does not appear in the string. The mmbbmmbb() function returns a pointer to the _p_a_t_t_e_r_n, or NULL if the _p_a_t_t_e_r_n does not appear in the string. SSEEEE AALLSSOO euc(4), mbrune(3), rune(3), setlocale(3), utf2(4) HHIISSTTOORRYY The mmbbrruunnee(), mmbbrrrruunnee(), and mmbbmmbb() functions first appeared in Plan 9 from Bell Labs as uuttffrruunnee(), uuttffrrrruunnee(), and uuttffuuttff(). 4.4BSD June 4, 1993 1