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 p

⟦2f8244201⟧ TextFile

    Length: 603 (0x25b)
    Types: TextFile
    Names: »plur.c«

Derivation

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

TextFile

/*
 * return plural or singular endings depending on 'n'
 */

char    *
plur(n, singular, plural)
int n;
char *singular, *plural;
{
        if (n == 1)
                return(singular);
        else
                return(plural);
}

char    *
splur(n)
int n;
{
        if (n == 1)
                return("");
        else
                return("s");
}

char    *
esplur(n)
int n;
{
        if (n == 1)
                return("");
        else
                return("es");
}

char    *
iesplur(n)
int n;
{
        if (n == 1)
                return("y");
        else
                return("ies");
}