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 l

⟦800c3b62e⟧ TextFile

    Length: 580 (0x244)
    Types: TextFile
    Names: »longfix.c«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Empire.V/V1.1/EMPFIX/longfix.c« 

TextFile

extern int      xflg, wflg, mflg;

/*
        n = ptr to name
        vp=ptr to current value
        wv=default value
*/
longfix(n, vp, wv)
char    *n;
long    *vp, wv;
{
        char    *cp, *getstri();
        long    atol();

        if( xflg ) return;
        if( wflg ) {
                *vp = wv;
                return;
        }
        printf("  %5s %ld  ", n, *vp);
        cp = getstri("");
        if( *cp == 'x' ) {
                xflg++;
                return;
        }
        if( *cp == '\0' ) return;
        *vp = atol(cp);
        mflg++;
        return;
}