/usr/include/deg2str.h is in libnexstar-dev 0.15-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | /**************************************************************
ASTRONOMICAL ROUTINE LIBRARY
ASCII to double and double to ASCII
conversion routines prototypes.
(C)2000 by Rumen G.Bogdanovski
***************************************************************/
#if !defined(__DEG2STR_H)
#define __DEG2STR_H
#define Err_NOERR 0
#define Err_INVSTR 1
#define Err_OUTOFR 2
//uncoment one of those to get needed hour and angle formats
//#define HUNDRETHS // XX:XX:XX.XX
#define TENTHS // XX:XX:XX.X
//#define SECONDS // XX:XX:XX
#ifdef __cplusplus /* If this is a C++ compiler, use C linkage */
extern "C" {
#endif
int a2dd(double *dd, const char *a);
char *dd2a(double a, int plus);
int a2dh(double *dh, const char *a);
char *dh2a(double h);
void dd2dms(double ang, unsigned char *deg, unsigned char *min, unsigned char *sec, char *sign);
#ifdef __cplusplus /* If this is a C++ compiler, end C linkage */
}
#endif
#endif /* __DEG2STR_H */
|