Lines Matching refs:mbs
48 get_cc(w, mbs, fp)
50 char *mbs;
60 if (fscanf(fp, "%[^\n]%n ", mbs, &n) < 1)
66 if (mvwaddstr(w, y, x, mbs) == ERR)
78 char *mbs;
91 if ((mbs = (char *) malloc((size_t) (LINE_MAX+1))) == (char *) 0)
109 by = fscanf( fp, "BG=%hx,%hd,%[^\n] ", &w->_bg._at, &w->_bg._co, mbs);
113 while (get_cc(w, mbs, fp))
119 free(mbs);
125 free(mbs);
133 put_cc(w, y, x, mbs, len, fp)
136 char *mbs;
148 (void) __m_cc_mbs(&w->_line[y][x], mbs, len);
157 (void) __m_cc_mbs(&w->_line[y][i], mbs, 0);
163 (void) fprintf(fp, "%d,%d,%#x,%d,%s\n", y, x, at, co, mbs);
174 char *mbs;
181 mbs_len = columns * M_CCHAR_MAX * MB_LEN_MAX * sizeof *mbs + 1;
182 if ((mbs = (char *) malloc((size_t) mbs_len)) == (char *) 0)
195 (void) __m_cc_mbs(&w->_bg, mbs, mbs_len);
197 (void) fprintf(fp, "BG=%#x,%d,%s\n", w->_bg._at, w->_bg._co, mbs);
201 x = put_cc(w, y, x, mbs, mbs_len, fp);
206 free(mbs);