29 lines
946 B
C
29 lines
946 B
C
//--------------------------------------------------------------------------//
|
|
// This file is in the public domain. //
|
|
//--------------------------------------------------------------------------//
|
|
|
|
// Compile with:
|
|
// m68k-amigaos-gcc -I../library -c test_tzload.c
|
|
// Link with:
|
|
// m68k-amigaos-gcc -noixemul test_tzload.o -o tzload ../library/time_tzload.o
|
|
// ../library/time_tzparse.o ../library/time_state.o ../library/time_init_ttinfo.o
|
|
// ../library/time_length.o ../library/time_increment_ot.o
|
|
|
|
#include "proto/exec.h"
|
|
#include "time_tm.h"
|
|
#include "compiler.h"
|
|
#include "time_header.h"
|
|
|
|
int main(const int argc, char *argv[])
|
|
{
|
|
int res;
|
|
//int tzload(char const *name, struct state *sp, bool doextend)
|
|
struct state *sp = (struct state*)AllocVec(sizeof(struct state), MEMF_ANY | MEMF_CLEAR);
|
|
|
|
res= tzload("Europe/Copenhagen", sp, 0);
|
|
|
|
printf("res: %d\n", res);
|
|
|
|
FreeVec(sp);
|
|
}
|