29 lines
768 B
C
29 lines
768 B
C
//--------------------------------------------------------------------------//
|
|
// This file is in the public domain. //
|
|
//--------------------------------------------------------------------------//
|
|
|
|
#include <stdio.h>
|
|
#include <exec/libraries.h>
|
|
#include "clib_timezone.h"
|
|
#include "timezone_inline.h"
|
|
|
|
struct Library *TimezoneBase;
|
|
|
|
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;
|
|
}
|