//--------------------------------------------------------------------------// // This file is in the public domain. // //--------------------------------------------------------------------------// #include #include #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; }