/* * games/_shared/ - shared routines for games * * dos2win32.c - MS-Dos to MS-Windows call convertor * ____________________________________________________________ * * Developed by Ondrej Jombik * Copyright (c) 2003-2004 Platon SDG, http://platon.sk/ * All rights reserved. * * See README file for more information about this software. * See COPYING file for license information. * * Download the latest version from * http://platon.sk/projects/games/ * * Changelog: * 2003-06-23 - created */ /* $Platon: games/_shared/dos2win32.c,v 1.2 2003/08/03 21:34:18 nepto Exp $ */ #include #include "dos2win32.h" void getdate(struct date *datep) /* {{{ */ { time_t secs; struct tm *t; time(&secs); t = gmtime(&secs); datep->da_year = (short) t->tm_year + 1900; datep->da_mon = (char) t->tm_mon + 1; datep->da_day = (char) t->tm_mday; } /* }}} */ /* Modeline for ViM {{{ * vim: set ts=4: * vim600: fdm=marker fdl=0 fdc=0: * }}} */