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

⟦4ca946511⟧ TextFile

    Length: 334 (0x14e)
    Types: TextFile
    Names: »cname.c«

Derivation

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

TextFile

#define D_NATSTR
#include        "empdef.h"

char    *
cname(num)
int     num;
{
        static char     buf[96];
        static int      nextbuf;
        char    *copy();

        if( getnat(num) == -1 ) return("");
        nextbuf = (nextbuf + 1) & 03;
        copy(&nat,  &buf[nextbuf * 20]);
        return(&buf[nextbuf * 20]);
}