]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/mandoc/test-strptime.c
amd64: use register macros for gdb_cpu_getreg()
[FreeBSD/FreeBSD.git] / contrib / mandoc / test-strptime.c
1 #include <time.h>
2
3 int
4 main(void)
5 {
6         struct tm tm;
7         const char input[] = "2014-01-04";
8         return ! (strptime(input, "%Y-%m-%d", &tm) == input + 10 &&
9             tm.tm_year == 114 && tm.tm_mon == 0 && tm.tm_mday == 4);
10 }