1 /* m_setcur.c - set "cur" */
7 void m_setcur (mp, num)
8 register struct msgs *mp;
15 public = mp -> msgflags & READONLY ? 0 : 1;
17 for (i = 0; mp -> msgattrs[i]; i++)
18 if (strcmp (mp -> msgattrs[i], current) == 0) {
19 public = mp -> attrstats & (1 << (bits + i)) ? 0 : 1;
23 if (!m_seqnew (mp, current, public))
25 (void) m_seqadd (mp, current, mp -> curmsg = num, public);