2015-07-29 20:14:38 +02:00
|
|
|
//--------------------------------------------------------------------------//
|
|
|
|
|
// This file is in the public domain. //
|
|
|
|
|
//--------------------------------------------------------------------------//
|
2015-06-17 17:00:14 +02:00
|
|
|
|
2015-07-25 23:35:51 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <exec/libraries.h>
|
|
|
|
|
#include "clib_timezone.h"
|
|
|
|
|
#include "timezone_inline.h"
|
2015-06-17 17:00:14 +02:00
|
|
|
|
2015-07-29 20:14:38 +02:00
|
|
|
struct Library *TimezoneBase;
|
2015-07-25 23:35:51 +02:00
|
|
|
|
|
|
|
|
int main(const int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
TimezoneBase = (struct Library*)OpenLibrary((STRPTR)"timezone.library", 0);
|
|
|
|
|
if (!TimezoneBase) {
|
|
|
|
|
printf("Cannot open timezone library.\n");
|
|
|
|
|
return 5;
|
|
|
|
|
} else {
|
|
|
|
|
printf("Opened timezone library.\n");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
now = time(NULL);
|
|
|
|
|
|
|
|
|
|
CloseLibrary(TimezoneBase);
|
|
|
|
|
printf("Closed timezone library.\n");
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|