shithub: riscv

ref: 8150f689959f71410f56ab66c0e89698c58459bc
dir: /sys/src/cmd/upas/fs/extra/strtotmtst.c/

View raw version
#include "strtotm.c"

void
main(int argc, char **argv)
{
	Tm tm;

	ARGBEGIN{
	}ARGEND

	for(; *argv; argv++)
		if(strtotm(*argv, &tm) >= 0)
			print("%s", asctime(&tm));
		else
			print("bad\n");
	exits("");
}