Files
amiga-tz/test/test_tzload.c

29 lines
946 B
C
Raw Normal View History

2015-07-29 20:14:38 +02:00
//--------------------------------------------------------------------------//
// This file is in the public domain. //
//--------------------------------------------------------------------------//
2015-07-25 23:35:51 +02:00
2015-07-29 20:14:38 +02:00
// 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
2015-07-25 23:35:51 +02:00
#include "proto/exec.h"
#include "time_tm.h"
#include "compiler.h"
2015-07-29 20:14:38 +02:00
#include "time_header.h"
2015-07-25 23:35:51 +02:00
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);
}