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 - download

⟦22249bb98⟧ TextFile

    Length: 484 (0x1e4)
    Types: TextFile
    Names: »dysize.c«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦this⟧ »EUUGD11/euug-87hel/sec3/localtime/dysize.c« 

TextFile

#

/*LINTLIBRARY*/

#ifndef lint
#ifndef NOID
static char	sccsid[] = "@(#)dysize.c	3.1";
#endif /* !NOID */
#endif /* !lint */

#ifdef BSD_COMPAT

#include "tzfile.h"

dysize(y)
{
	/*
	** The 4.[0123]BSD version of dysize behaves as if the return statement
	** below read
	**	return ((y % 4) == 0) ? DAYS_PER_LYEAR : DAYS_PER_NYEAR;
	** but since we'd rather be right than (strictly) compatible. . .
	*/
	return isleap(y) ? DAYS_PER_LYEAR : DAYS_PER_NYEAR;
}

#endif /* BSD_COMPAT */