DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T m

⟦e7f9fff4c⟧ TextFile

    Length: 559 (0x22f)
    Types: TextFile
    Names: »m_setcur.c«

Derivation

└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
    └─⟦3658e588a⟧ »EurOpenD3/mail/mh/mh-6.7.tar.Z« 
        └─⟦c75e36ecb⟧ 
            └─⟦this⟧ »mh-6.7/sbr/m_setcur.c« 

TextFile

/* m_setcur.c - set "cur" */

#include "../h/mh.h"
#include <stdio.h>


void m_setcur (mp, num)
register struct  msgs *mp;
register int     num;
{
    int     bits,
            public;
    register int    i;

    public = mp -> msgflags & READONLY ? 0 : 1;
    bits = FFATTRSLOT;
    for (i = 0; mp -> msgattrs[i]; i++)
	if (strcmp (mp -> msgattrs[i], current) == 0) {
	    public = mp -> attrstats & (1 << (bits + i)) ? 0 : 1;
	    break;
	}

    if (!m_seqnew (mp, current, public))
	return;
    (void) m_seqadd (mp, current, mp -> curmsg = num, public);
}