Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 498406
Collapse All | Expand All

(-)a/test/t_iso8601.c (+3 lines)
Lines 3-8 Link Here
3
3
4
#include <assert.h>
4
#include <assert.h>
5
#include <time.h>
5
#include <time.h>
6
#include <stdio.h>
6
7
7
int main(mpd_unused int argc, mpd_unused char **argv)
8
int main(mpd_unused int argc, mpd_unused char **argv)
8
{
9
{
Lines 12-19 int main(mpd_unused int argc, mpd_unused char **argv) Link Here
12
13
13
	now = time(NULL);
14
	now = time(NULL);
14
	success = iso8601_datetime_format(buffer, sizeof(buffer), now);
15
	success = iso8601_datetime_format(buffer, sizeof(buffer), now);
16
	printf("buffer: %s\n", buffer);
15
	assert(success);
17
	assert(success);
16
18
17
	t = iso8601_datetime_parse(buffer);
19
	t = iso8601_datetime_parse(buffer);
20
	printf("now: %ld\nt: %ld\n", now, t);
18
	assert(t == now);
21
	assert(t == now);
19
}
22
}

Return to bug 498406