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:
parent
c1b52847e2
commit
21f50dd07d
@ -6,6 +6,7 @@ KernelMergeObject posix_time.o :
|
||||
<$(SOURCE_GRIST)>difftime.c
|
||||
<$(SOURCE_GRIST)>localtime.c
|
||||
<$(SOURCE_GRIST)>mktime.c
|
||||
<$(SOURCE_GRIST)>strftime.cpp
|
||||
<$(SOURCE_GRIST)>time.c
|
||||
:
|
||||
-fPIC -DPIC
|
||||
|
19
src/kernel/libroot/posix/time/strftime.cpp
Normal file
19
src/kernel/libroot/posix/time/strftime.cpp
Normal 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user