#!/usr/local/bin/rune -x # limport "sys"; import "stdio"; import "../objs/tests/libc.d" as test; typedef int32_t time_t; typedef time_t *time_ptr; public int main(int ac, char **av) { time_t t = test.time(time_ptr.NULL); __clang test.C_tm *tm = test.localtime(&t); char buf[64]; stdio.stdout->show("strftime rv=", test.strftime(buf, sizeof(buf), "TIME %H:%M:%S", tm)); stdio.stdout->show("BUFFER", &buf[0]); stdio.stdout->show("SEEK_END=", test.C_SEEK_END); }