summaryrefslogtreecommitdiff
path: root/support/dktools/test-dk4time.c
blob: 209a96c4a14b7b0f37d368ea1d0b58de4d868170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
	WARNING: This file was generated by dkct.
	Changes you make here will be lost if dkct is run again!
	You should modify the original source and run dkct on it.
	Original source: test-dk4time.ctr
*/

/**	@file test-dk4time.c The test-dk4time module.
*/


#line 1 "test-dk4time.ctr"

#include <stdio.h>

#include "dk4conf.h"
#include "dk4time.h"



int main(void)
{
  char		buffer[64];
  dk4_time_t	timer;
  
  dk4time_get(&timer);
  if (dk4time_as_text(buffer, sizeof(buffer), &timer, NULL)) {
    fputs(buffer, stdout);
    fputc('\n', stdout);
  }
  return 0;
}