solar.c
int
libred_check_timetravel(void)
{
#if !defined(TIMETRAVELLER)
	struct timespec now;
	if (clock_gettime(CLOCK_REALTIME, &now))
		return -1;
	if (now.tv_sec < (time_t)946728000L) {
		fprintf(stderr,
		       "We have detected that you are a time-traveller"
		       "(or your clock is not configured correctly.)"
		       "Please recompile libred with -DTIMETRAVELLER"
		       "(or correct your clock.)");
		exit(1);
	}
#endif
	return 0;
}
/**
 * Exit if time the is before year 0 in J2000
 * 
 * @return  0 on success, -1 on error
 */
Exit if time the is before year 0 in J2000

@return  0 on success, -1 on error
Exit if time the is before year 0 in J2000 @return 0 on success - 1 on error
int
libred_check_timetravel(void)
{
#if !defined(TIMETRAVELLER)
	struct timespec now;
	if (clock_gettime(CLOCK_REALTIME, &now))
		return -1;
	if (now.tv_sec < (time_t)946728000L) {
		fprintf(stderr,
		       "We have detected that you are a time-traveller"
		       "(or your clock is not configured correctly.)"
		       "Please recompile libred with -DTIMETRAVELLER"
		       "(or correct your clock.)");
		exit(1);
	}
#endif
	return 0;
}
int libred_check_timetravel ( void ) { #if ! defined ( TIMETRAVELLER ) struct timespec now ; if ( clock_gettime ( CLOCK_REALTIME , & now ) ) return -1 ; if ( now . tv_sec < ( time_t ) 946728000L ) { fprintf ( stderr , " " " " " " " " ) ; exit ( 1 ) ; } #endif return 0 ; }
Exit if time the is before year 0 in J2000
Exit if time the is before year 0 in J2000