Súbor: [Platon] / games / _shared / dos2win32.c (stiahnutie)
Revízia 1.3, Tue Apr 6 09:54:15 2004 UTC (21 years ago) by nepto
Zmeny od 1.2: +12 -5
[lines]
Headers update:
- switch to standard/classic Platon SDG source header
- bumped copyright year to 2004
- changelog dates reformatted to new format YYYY-MM-DD
|
/*
* games/_shared/ - shared routines for games
*
* dos2win32.c - MS-Dos to MS-Windows call convertor
* ____________________________________________________________
*
* Developed by Ondrej Jombik <nepto@platon.sk>
* 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 <time.h>
#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:
* }}} */
Platon Group <platon@platon.sk> http://platon.sk/
|