HOPS
HOPS class reference
Macros | Functions | Variables
julian.c File Reference
#include "julian.h"
#include <stdlib.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>

Macros

#define ITOA(s, i)   sprintf(s, "%d", i)
 
#define NSTAT   0
 
#define SC   static
 
#define STATIC   static
 

Functions

HTLdbl atomin (char *string)
 
SC void cpy0p ()
 
STATIC void cpy0p (char *dest, char *src, int n)
 
int day_of_jd (long int jd)
 
char ** degdms (int pre, HTLdbl x)
 
char * jdstr (long int jd)
 
long int julday (int y, int m, int d)
 
SC int leapyr ()
 
STATIC int leapyr (int y)
 
int month_of_jd (long int jd)
 
char * stoup (char *string)
 
char * timstr (HTLdbl m)
 
int year_of_jd (long int jd)
 

Variables

STATIC struct month calndr []
 

Macro Definition Documentation

◆ ITOA

#define ITOA (   s,
 
)    sprintf(s, "%d", i)

◆ NSTAT

#define NSTAT   0

◆ SC

#define SC   static

◆ STATIC

#define STATIC   static

Function Documentation

◆ atomin()

HTLdbl atomin ( char *  string)

◆ cpy0p() [1/2]

SC void cpy0p ( )

◆ cpy0p() [2/2]

STATIC void cpy0p ( char *  dest,
char *  src,
int  n 
)

◆ day_of_jd()

int day_of_jd ( long int  jd)

◆ degdms()

char** degdms ( int  pre,
HTLdbl  x 
)

◆ jdstr()

char* jdstr ( long int  jd)

◆ julday()

long int julday ( int  y,
int  m,
int  d 
)

◆ leapyr() [1/2]

SC int leapyr ( )

◆ leapyr() [2/2]

STATIC int leapyr ( int  y)

◆ month_of_jd()

int month_of_jd ( long int  jd)

◆ stoup()

char* stoup ( char *  string)

◆ timstr()

char* timstr ( HTLdbl  m)

◆ year_of_jd()

int year_of_jd ( long int  jd)

Variable Documentation

◆ calndr

STATIC struct month calndr[]
Initial value:
= {
{"JAN", 0}, {"FEB", 31}, {"MAR", 59},
{"APR", 90}, {"MAY", 120}, {"JUN", 151},
{"JUL", 181}, {"AUG", 212}, {"SEP", 243},
{"OCT", 273}, {"NOV", 304}, {"DEC", 334}, {(char *) 0, 365}
}