2008-12-05から1日間の記事一覧
#include <stdio.h> #include <time.h> #include <errno.h> #include <string.h> int main(int argc, char** argv){ if ( argc < 2 || strlen(argv[1]) < 8 ) { return -1; } /* struct tm の初期化 */ struct tm tmbuf; memset(&tmbuf,0x00,sizeof(struct tm)); /* 文字列→struct tmへの変換 */ </string.h></errno.h></time.h></stdio.h>…