diff options
Diffstat (limited to 'test-strptime.c')
-rw-r--r-- | test-strptime.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test-strptime.c b/test-strptime.c new file mode 100644 index 00000000..976e9c80 --- /dev/null +++ b/test-strptime.c @@ -0,0 +1,13 @@ +#if defined(__linux__) || defined(__MINT__) +# define _GNU_SOURCE /* strptime(), getsubopt() */ +#endif + +#include <time.h> + +int +main(int argc, char **argv) +{ + struct tm tm; + strptime(*argv, "%D", &tm); + return 0; +} |