git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4451 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2009-05-29 17:37:34 +00:00
parent 374507babf
commit 0b454b65e1
8 changed files with 12 additions and 18 deletions
+7
View File
@@ -55,6 +55,13 @@ const char *asctime()
return timestring(true, "%c");
}
const char *numtime()
{
static string numt;
s_sprintf(numt)("%ld", (long long) time(NULL));
return numt;
}
char *path(char *s)
{
for(char *t = s; (t = strpbrk(t, "/\\")); *t++ = PATHDIV);