Added non-working version of strftime().

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8329 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-07-05 23:09:59 +00:00
parent c1b52847e2
commit 21f50dd07d
2 changed files with 20 additions and 0 deletions

View File

@ -6,6 +6,7 @@ KernelMergeObject posix_time.o :
<$(SOURCE_GRIST)>difftime.c <$(SOURCE_GRIST)>difftime.c
<$(SOURCE_GRIST)>localtime.c <$(SOURCE_GRIST)>localtime.c
<$(SOURCE_GRIST)>mktime.c <$(SOURCE_GRIST)>mktime.c
<$(SOURCE_GRIST)>strftime.cpp
<$(SOURCE_GRIST)>time.c <$(SOURCE_GRIST)>time.c
: :
-fPIC -DPIC -fPIC -DPIC

View File

@ -0,0 +1,19 @@
/*
** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the Haiku License.
*/
#include <SupportDefs.h>
#include <time.h>
#include <string.h>
extern "C" size_t
strftime(char *buffer, size_t bufferSize, const char *format, const struct tm *tm)
{
// ToDo: implement (or copy) strftime()
return strlcpy(buffer, "99-Sep-99", bufferSize);
}